Coder Social home page Coder Social logo

[Bug]: netlify 添加环境变量后部署报错 The function "COMMENT" is larger than the 50MB limit. Please consider reducing it. about waline HOT 3 OPEN

appotry avatar appotry commented on May 28, 2024
[Bug]: netlify 添加环境变量后部署报错 The function "COMMENT" is larger than the 50MB limit. Please consider reducing it.

from waline.

Comments (3)

appotry avatar appotry commented on May 28, 2024

问题网站 | Website URL
https://waline2.netlify.app/ 这个是前面没有添加环境变量部署成功的网址,域名自动指定的


Question Website | Website URL
https://waline2.netlify.app/ This is the URL that was successfully deployed without adding environment variables before, and the domain name is automatically specified

from waline.

lizheming avatar lizheming commented on May 28, 2024

无法复现,把你所有的环境变量原封不动的 copy 过去部署了,https://walinejs.netlify.app/.netlify/functions/comment 。另外如果真的 Netlify Functions 限制在 50M 的话,那基本上使用 Netlify 部署 Waline 不太可能,Waline 打包后的体积肯定是要大于 50M 的。

10:05:35 PM: build-image version: 91488c6c0412f5c1c00fb34eff5c1fc41a32bce9 (focal)
10:05:35 PM: buildbot version: 91488c6c0412f5c1c00fb34eff5c1fc41a32bce9
10:05:35 PM: Fetching cached dependencies
10:05:35 PM: Starting to download cache of 111.0MB
10:05:36 PM: Finished downloading cache in 750ms
10:05:36 PM: Starting to extract cache
10:05:37 PM: Finished extracting cache in 1.039s
10:05:37 PM: Finished fetching cache in 1.842s
10:05:37 PM: Starting to prepare the repo for build
10:05:37 PM: Preparing Git Reference refs/heads/master
10:05:37 PM: Parsing package.json dependencies
10:05:38 PM: Different functions path detected, going to use the one specified in the Netlify configuration file: 'netlify/functions' versus '' in the Netlify UI
10:05:39 PM: Starting to install dependencies
10:05:39 PM: Python version set to 3.8
10:05:39 PM: Attempting Ruby version 2.7.2, read from environment
10:05:40 PM: Using Ruby version 2.7.2
10:05:40 PM: Started restoring cached go cache
10:05:40 PM: Finished restoring cached go cache
10:05:40 PM: Installing Go version 1.19.5 (requested 1.19.5)
10:05:45 PM: go version go1.19.5 linux/amd64
10:05:46 PM: Using PHP version 8.0
10:05:46 PM: Started restoring cached Node.js version
10:05:47 PM: Finished restoring cached Node.js version
10:05:47 PM: v16.20.0 is already installed.
10:05:48 PM: Now using node v16.20.0 (npm v8.19.4)
10:05:48 PM: Enabling Node.js Corepack
10:05:48 PM: Started restoring cached build plugins
10:05:48 PM: Finished restoring cached build plugins
10:05:48 PM: Started restoring cached corepack dependencies
10:05:48 PM: Finished restoring cached corepack dependencies
10:05:48 PM: No npm workspaces detected
10:05:48 PM: Started restoring cached node modules
10:05:48 PM: Finished restoring cached node modules
10:05:48 PM: Installing npm packages using npm version 8.19.4
10:05:52 PM: up to date, audited 550 packages in 4s
10:05:52 PM: 30 packages are looking for funding
10:05:52 PM:   run `npm fund` for details
10:05:52 PM: 33 vulnerabilities (27 moderate, 6 high)
10:05:52 PM: To address issues that do not require attention, run:
10:05:52 PM:   npm audit fix
10:05:52 PM: Some issues need review, and may require choosing
10:05:52 PM: a different dependency.
10:05:52 PM: Run `npm audit` for details.
10:05:52 PM: npm packages installed
10:05:53 PM: Install dependencies script success
10:05:53 PM: Starting build script
10:05:53 PM: Detected 0 framework(s)
10:05:53 PM: Section completed: initializing
10:05:55 PM: ​
10:05:55 PM:   Netlify Build                                                 
10:05:55 PM: ────────────────────────────────────────────────────────────────
10:05:55 PM: ​
10:05:55 PM: ❯ Version
10:05:55 PM:   @netlify/build 29.9.2
10:05:55 PM: ​
10:05:55 PM: ❯ Flags
10:05:55 PM:   baseRelDir: true
10:05:55 PM:   buildId: 643c00a46dc91448a836a445
10:05:55 PM:   deployId: 643c00a46dc91448a836a447
10:05:55 PM: ​
10:05:55 PM: ❯ Current directory
10:05:55 PM:   /opt/build/repo
10:05:55 PM: ​
10:05:55 PM: ❯ Config file
10:05:55 PM:   /opt/build/repo/netlify.toml
10:05:55 PM: ​
10:05:55 PM: ❯ Context
10:05:55 PM:   production
10:05:55 PM: ​
10:05:55 PM:   1. Functions bundling                                         
10:05:55 PM: ────────────────────────────────────────────────────────────────
10:05:55 PM: ​
10:05:55 PM: Packaging Functions from netlify/functions directory:
10:05:55 PM:  - comment.js
10:05:55 PM: ​
10:06:05 PM: ​
10:06:05 PM: (Functions bundling completed in 9.7s)
10:06:05 PM: ​
10:06:05 PM:   2. Deploy site                                                
10:06:05 PM: ────────────────────────────────────────────────────────────────
10:06:05 PM: ​
10:06:05 PM: Starting to deploy site from '/'
10:06:05 PM: Calculating files to upload
10:06:05 PM: 0 new files to upload
10:06:05 PM: 1 new functions to upload
10:06:15 PM: Section completed: deploying
10:06:15 PM: Site deploy was successfully initiated
10:06:15 PM: ​
10:06:15 PM: Starting post processing
10:06:15 PM: (Deploy site completed in 10s)
10:06:15 PM: ​
10:06:15 PM:   Netlify Build Complete                                        
10:06:15 PM: ────────────────────────────────────────────────────────────────
10:06:15 PM: Post processing - HTML
10:06:15 PM: ​
10:06:15 PM: (Netlify Build completed in 19.8s)
10:06:15 PM: Post processing - header rules
10:06:15 PM: Caching artifacts
10:06:15 PM: Started saving node modules
10:06:15 PM: Post processing - redirect rules
10:06:15 PM: Finished saving node modules
10:06:15 PM: Started saving build plugins
10:06:15 PM: Finished saving build plugins
10:06:15 PM: Post processing done
10:06:15 PM: Started saving corepack cache
10:06:15 PM: Section completed: postprocessing
10:06:15 PM: Finished saving corepack cache
10:06:15 PM: Started saving pip cache
10:06:15 PM: Finished saving pip cache
10:06:15 PM: Started saving emacs cask dependencies
10:06:15 PM: Finished saving emacs cask dependencies
10:06:15 PM: Started saving maven dependencies
10:06:15 PM: Finished saving maven dependencies
10:06:15 PM: Started saving boot dependencies
10:06:15 PM: Finished saving boot dependencies
10:06:15 PM: Started saving rust rustup cache
10:06:15 PM: Finished saving rust rustup cache
10:06:15 PM: Started saving go dependencies
10:06:15 PM: Finished saving go dependencies
10:06:16 PM: Build script success
10:06:16 PM: Section completed: building
10:06:16 PM: Site is live ✨
10:06:17 PM: Uploading Cache of size 111.0MB
10:06:18 PM: Section completed: cleanup
10:06:18 PM: Finished processing build request in 42.726s

from waline.

appotry avatar appotry commented on May 28, 2024

在环境变量设置页面, Import from a .env file ,批量导入,测试几次,还是同样的报错。

Scopes 选择 All scopes
Deploy contexts 选择 All deploy contexts

把环境变量删除的只剩下 下面三个的时候,部署就可以成功
LEAN_ID=xxxxxxxxxxxxx-xxxx
LEAN_KEY=xxxxxxx
LEAN_MASTER_KEY=xxxxxxxxxxx

Deploys from github.com/appotry/netlify-starter 是fork的最新版

from waline.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.