The build throws an error saying โ [ERROR] Error: Pages only supports files up to 26.2 MB in size. The site is 108 MB. Locally our build is 16 MB.
2023-04-01T06:25:28.200056Z Cloning repository... 2023-04-01T06:25:29.936979Z From https://github.com/* 2023-04-01T06:25:29.937555Z * branch 90c6728c39bf505b080f811eca1a65dfe18cfa55 -> FETCH_HEAD 2023-04-01T06:25:29.937745Z 2023-04-01T06:25:30.048587Z HEAD is now at 90c6728 Update next.config.js 2023-04-01T06:25:30.049075Z 2023-04-01T06:25:30.199719Z 2023-04-01T06:25:30.227336Z Success: Finished cloning repository files 2023-04-01T06:25:30.991972Z Installing dependencies 2023-04-01T06:25:31.003784Z Python version set to 2.7 2023-04-01T06:25:34.458219Z Downloading and installing node v17.9.1... 2023-04-01T06:25:34.897388Z Downloading https://nodejs.org/dist/v17.9.1/node-v17.9.1-linux-x64.tar.xz... 2023-04-01T06:25:35.338327Z Computing checksum with sha256sum 2023-04-01T06:25:35.470468Z Checksums matched! 2023-04-01T06:25:40.691183Z Now using node v17.9.1 (npm v8.11.0) 2023-04-01T06:25:41.12434Z Started restoring cached build plugins 2023-04-01T06:25:41.138712Z Finished restoring cached build plugins 2023-04-01T06:25:41.706875Z Attempting ruby version 2.7.1, read from environment 2023-04-01T06:25:45.604478Z Using ruby version 2.7.1 2023-04-01T06:25:45.969358Z Using PHP version 5.6 2023-04-01T06:25:46.134274Z 5.2 is already installed. 2023-04-01T06:25:46.161458Z Using Swift version 5.2 2023-04-01T06:25:46.162148Z Started restoring cached node modules 2023-04-01T06:25:46.17934Z Finished restoring cached node modules 2023-04-01T06:25:46.700302Z Installing NPM modules using NPM version 8.11.0 2023-04-01T06:25:47.129019Z npm WARN config tmp This setting is no longer used. npm stores temporary files in a special 2023-04-01T06:25:47.129328Z npm WARN config location in the cache, and they are managed by 2023-04-01T06:25:47.129484Z npm WARN config [cacache](http://npm.im/cacache). 2023-04-01T06:25:47.547625Z npm WARN config tmp This setting is no longer used. npm stores temporary files in a special 2023-04-01T06:25:47.548026Z npm WARN config location in the cache, and they are managed by 2023-04-01T06:25:47.548245Z npm WARN config [cacache](http://npm.im/cacache). 2023-04-01T06:25:58.862236Z 2023-04-01T06:25:58.862665Z added 286 packages, and audited 287 packages in 11s 2023-04-01T06:25:58.862864Z 2023-04-01T06:25:58.863119Z 106 packages are looking for funding 2023-04-01T06:25:58.863266Z runnpm fundfor details 2023-04-01T06:25:58.863817Z 2023-04-01T06:25:58.864152Z found 0 vulnerabilities 2023-04-01T06:25:58.884698Z NPM modules installed 2023-04-01T06:25:59.492661Z npm WARN config tmp This setting is no longer used. npm stores temporary files in a special 2023-04-01T06:25:59.49314Z npm WARN config location in the cache, and they are managed by 2023-04-01T06:25:59.493399Z npm WARN config [cacache](http://npm.im/cacache). 2023-04-01T06:25:59.512747Z Installing Hugo 0.54.0 2023-04-01T06:26:00.225778Z Hugo Static Site Generator v0.54.0-B1A82C61A/extended linux/amd64 BuildDate: 2019-02-01T10:04:38Z 2023-04-01T06:26:00.230404Z Started restoring cached go cache 2023-04-01T06:26:00.251645Z Finished restoring cached go cache 2023-04-01T06:26:00.409692Z go version go1.14.4 linux/amd64 2023-04-01T06:26:00.426648Z go version go1.14.4 linux/amd64 2023-04-01T06:26:00.430116Z Installing missing commands 2023-04-01T06:26:00.430452Z Verify run directory 2023-04-01T06:26:00.430939Z Executing user command: npm run build 2023-04-01T06:26:00.918366Z npm WARN config tmp This setting is no longer used. npm stores temporary files in a special 2023-04-01T06:26:00.918697Z npm WARN config location in the cache, and they are managed by 2023-04-01T06:26:00.918858Z npm WARN config [cacache](http://npm.im/cacache). 2023-04-01T06:26:00.93523Z 2023-04-01T06:26:00.935502Z > bhasha-website@0.1.0 build 2023-04-01T06:26:00.935666Z > next build 2023-04-01T06:26:00.935785Z 2023-04-01T06:26:01.646377Z warn - You have enabled experimental feature (runtime) in next.config.js. 2023-04-01T06:26:01.646866Z warn - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk. 2023-04-01T06:26:01.647066Z 2023-04-01T06:26:01.649151Z warn - No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache 2023-04-01T06:26:01.686889Z Attention: Next.js now collects completely anonymous telemetry regarding usage. 2023-04-01T06:26:01.687304Z This information is used to shape Next.js' roadmap and prioritize features. 2023-04-01T06:26:01.687457Z You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL: 2023-04-01T06:26:01.687646Z https://nextjs.org/telemetry 2023-04-01T06:26:01.687771Z 2023-04-01T06:26:01.868946Z info - Linting and checking validity of types... 2023-04-01T06:26:05.206171Z 2023-04-01T06:26:05.206482Z ./components/syllabus.js 2023-04-01T06:26:05.206644Z 7:3 Warning: Unexpected console statement. no-console 2023-04-01T06:26:05.206762Z 2023-04-01T06:26:05.20687Z info - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules 2023-04-01T06:26:05.21344Z info - Creating an optimized production build... 2023-04-01T06:26:05.241347Z warn - You are using the experimental Edge Runtime withexperimental.runtime. 2023-04-01T06:26:08.19055Z Warning: For production Image Optimization with Next.js, the optional 'sharp' package is strongly recommended. Run 'yarn add sharp', and Next.js will use it automatically for Image Optimization. 2023-04-01T06:26:08.190854Z Read more: https://nextjs.org/docs/messages/sharp-missing-in-production 2023-04-01T06:26:21.066869Z info - Compiled successfully 2023-04-01T06:26:21.071561Z info - Collecting page data... 2023-04-01T06:26:27.731731Z info - Generating static pages (0/2) 2023-04-01T06:26:27.861545Z info - Generating static pages (2/2) 2023-04-01T06:26:27.880109Z info - Finalizing page optimization... 2023-04-01T06:26:27.88532Z 2023-04-01T06:26:27.909755Z Route (pages) Size First Load JS 2023-04-01T06:26:27.910088Z โ โ / 480 B 82.3 kB 2023-04-01T06:26:27.910253Z โ /_app 0 B 81.8 kB 2023-04-01T06:26:27.910377Z โ โ /[slug] 1.44 kB 88.4 kB 2023-04-01T06:26:27.910508Z โ โ /404 181 B 82 kB 2023-04-01T06:26:27.910654Z โ โ /error 520 B 82.3 kB 2023-04-01T06:26:27.910769Z โ โ /Kannada1 6.8 kB 93.8 kB 2023-04-01T06:26:27.910886Z โ โ /testimonials 268 B 82 kB 2023-04-01T06:26:27.911031Z + First Load JS shared by all 113 kB 2023-04-01T06:26:27.911159Z โ chunks/framework-2c79e2a64abdb08b.js 45.2 kB 2023-04-01T06:26:27.911268Z โ chunks/main-74c4d6b2b5c362f3.js 26.9 kB 2023-04-01T06:26:27.911375Z โ chunks/pages/_app-fa9ebaa43989c74a.js 7.91 kB 2023-04-01T06:26:27.911496Z โ chunks/webpack-cb4c7cc1ae21d4e8.js 1.74 kB 2023-04-01T06:26:27.911631Z โ css/ff9ce28d5058e521.css 31.1 kB 2023-04-01T06:26:27.911752Z 2023-04-01T06:26:27.911873Z โ (Streaming) server-side renders with streaming (uses React 18 SSR streaming or Server Components) 2023-04-01T06:26:27.912Z โ (Static) automatically rendered as static HTML (uses no initial props) 2023-04-01T06:26:27.91211Z 2023-04-01T06:26:28.638339Z Finished 2023-04-01T06:26:28.639022Z Note: No functions dir at /functions found. Skipping. 2023-04-01T06:26:28.639274Z Validating asset output directory 2023-04-01T06:26:29.303403Z Deploying your site to Cloudflare's global network... 2023-04-01T06:26:30.877265Z 2023-04-01T06:26:31.008702Z [31mโ [41;31m[[41;97mERROR[41;31m][0m [1mError: Pages only supports files up to 26.2 MB in size[0m 2023-04-01T06:26:31.009229Z 2023-04-01T06:26:31.00941Z cache/webpack/edge-server-production/0.pack is 108 MB in size 2023-04-01T06:26:31.009549Z 2023-04-01T06:26:31.009667Z 2023-04-01T06:26:31.009785Z [32mIf you think this is a bug then please create an issue at https://github.com/cloudflare/workers-sdk/issues/new/choose[0m 2023-04-01T06:26:31.021768Z Failed: upload process exited with code: 1 2023-04-01T06:26:31.86772Z Failed: an internal error occurred 2023-04-01T06:26:31.86772Z Error: Failed to publish assets. For support, join our Discord (https://discord.gg/cloudflaredev) or create a ticket and reference the deployment ID: e176de6d-e018-4c18-923b-887c933bbb0a
Hi! Looks like your build output directory may be incorrectly configured. If you're using a simple Next.js project, this should be set to .vercel/output/static.
Which Cloudflare product(s) does this pertain to?
Pages
What version of
Wrangler
are you using?0.0.0
What operating system are you using?
Mac
Describe the Bug
โ [ERROR] Error: Pages only supports files up to 26.2 MB in size
. The site is 108 MB. Locally our build is 16 MB.2023-04-01T06:25:28.200056Z Cloning repository... 2023-04-01T06:25:29.936979Z From https://github.com/* 2023-04-01T06:25:29.937555Z * branch 90c6728c39bf505b080f811eca1a65dfe18cfa55 -> FETCH_HEAD 2023-04-01T06:25:29.937745Z 2023-04-01T06:25:30.048587Z HEAD is now at 90c6728 Update next.config.js 2023-04-01T06:25:30.049075Z 2023-04-01T06:25:30.199719Z 2023-04-01T06:25:30.227336Z Success: Finished cloning repository files 2023-04-01T06:25:30.991972Z Installing dependencies 2023-04-01T06:25:31.003784Z Python version set to 2.7 2023-04-01T06:25:34.458219Z Downloading and installing node v17.9.1... 2023-04-01T06:25:34.897388Z Downloading https://nodejs.org/dist/v17.9.1/node-v17.9.1-linux-x64.tar.xz... 2023-04-01T06:25:35.338327Z Computing checksum with sha256sum 2023-04-01T06:25:35.470468Z Checksums matched! 2023-04-01T06:25:40.691183Z Now using node v17.9.1 (npm v8.11.0) 2023-04-01T06:25:41.12434Z Started restoring cached build plugins 2023-04-01T06:25:41.138712Z Finished restoring cached build plugins 2023-04-01T06:25:41.706875Z Attempting ruby version 2.7.1, read from environment 2023-04-01T06:25:45.604478Z Using ruby version 2.7.1 2023-04-01T06:25:45.969358Z Using PHP version 5.6 2023-04-01T06:25:46.134274Z 5.2 is already installed. 2023-04-01T06:25:46.161458Z Using Swift version 5.2 2023-04-01T06:25:46.162148Z Started restoring cached node modules 2023-04-01T06:25:46.17934Z Finished restoring cached node modules 2023-04-01T06:25:46.700302Z Installing NPM modules using NPM version 8.11.0 2023-04-01T06:25:47.129019Z npm WARN config tmp This setting is no longer used. npm stores temporary files in a special 2023-04-01T06:25:47.129328Z npm WARN config location in the cache, and they are managed by 2023-04-01T06:25:47.129484Z npm WARN config [
cacache](http://npm.im/cacache). 2023-04-01T06:25:47.547625Z npm WARN config tmp This setting is no longer used. npm stores temporary files in a special 2023-04-01T06:25:47.548026Z npm WARN config location in the cache, and they are managed by 2023-04-01T06:25:47.548245Z npm WARN config [
cacache](http://npm.im/cacache). 2023-04-01T06:25:58.862236Z 2023-04-01T06:25:58.862665Z added 286 packages, and audited 287 packages in 11s 2023-04-01T06:25:58.862864Z 2023-04-01T06:25:58.863119Z 106 packages are looking for funding 2023-04-01T06:25:58.863266Z run
npm fundfor details 2023-04-01T06:25:58.863817Z 2023-04-01T06:25:58.864152Z found 0 vulnerabilities 2023-04-01T06:25:58.884698Z NPM modules installed 2023-04-01T06:25:59.492661Z npm WARN config tmp This setting is no longer used. npm stores temporary files in a special 2023-04-01T06:25:59.49314Z npm WARN config location in the cache, and they are managed by 2023-04-01T06:25:59.493399Z npm WARN config [
cacache](http://npm.im/cacache). 2023-04-01T06:25:59.512747Z Installing Hugo 0.54.0 2023-04-01T06:26:00.225778Z Hugo Static Site Generator v0.54.0-B1A82C61A/extended linux/amd64 BuildDate: 2019-02-01T10:04:38Z 2023-04-01T06:26:00.230404Z Started restoring cached go cache 2023-04-01T06:26:00.251645Z Finished restoring cached go cache 2023-04-01T06:26:00.409692Z go version go1.14.4 linux/amd64 2023-04-01T06:26:00.426648Z go version go1.14.4 linux/amd64 2023-04-01T06:26:00.430116Z Installing missing commands 2023-04-01T06:26:00.430452Z Verify run directory 2023-04-01T06:26:00.430939Z Executing user command: npm run build 2023-04-01T06:26:00.918366Z npm WARN config tmp This setting is no longer used. npm stores temporary files in a special 2023-04-01T06:26:00.918697Z npm WARN config location in the cache, and they are managed by 2023-04-01T06:26:00.918858Z npm WARN config [
cacache](http://npm.im/cacache). 2023-04-01T06:26:00.93523Z 2023-04-01T06:26:00.935502Z > bhasha-website@0.1.0 build 2023-04-01T06:26:00.935666Z > next build 2023-04-01T06:26:00.935785Z 2023-04-01T06:26:01.646377Z warn - You have enabled experimental feature (runtime) in next.config.js. 2023-04-01T06:26:01.646866Z warn - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk. 2023-04-01T06:26:01.647066Z 2023-04-01T06:26:01.649151Z warn - No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache 2023-04-01T06:26:01.686889Z Attention: Next.js now collects completely anonymous telemetry regarding usage. 2023-04-01T06:26:01.687304Z This information is used to shape Next.js' roadmap and prioritize features. 2023-04-01T06:26:01.687457Z You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL: 2023-04-01T06:26:01.687646Z https://nextjs.org/telemetry 2023-04-01T06:26:01.687771Z 2023-04-01T06:26:01.868946Z info - Linting and checking validity of types... 2023-04-01T06:26:05.206171Z 2023-04-01T06:26:05.206482Z ./components/syllabus.js 2023-04-01T06:26:05.206644Z 7:3 Warning: Unexpected console statement. no-console 2023-04-01T06:26:05.206762Z 2023-04-01T06:26:05.20687Z info - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules 2023-04-01T06:26:05.21344Z info - Creating an optimized production build... 2023-04-01T06:26:05.241347Z warn - You are using the experimental Edge Runtime with
experimental.runtime. 2023-04-01T06:26:08.19055Z Warning: For production Image Optimization with Next.js, the optional 'sharp' package is strongly recommended. Run 'yarn add sharp', and Next.js will use it automatically for Image Optimization. 2023-04-01T06:26:08.190854Z Read more: https://nextjs.org/docs/messages/sharp-missing-in-production 2023-04-01T06:26:21.066869Z info - Compiled successfully 2023-04-01T06:26:21.071561Z info - Collecting page data... 2023-04-01T06:26:27.731731Z info - Generating static pages (0/2) 2023-04-01T06:26:27.861545Z info - Generating static pages (2/2) 2023-04-01T06:26:27.880109Z info - Finalizing page optimization... 2023-04-01T06:26:27.88532Z 2023-04-01T06:26:27.909755Z Route (pages) Size First Load JS 2023-04-01T06:26:27.910088Z โ โ / 480 B 82.3 kB 2023-04-01T06:26:27.910253Z โ /_app 0 B 81.8 kB 2023-04-01T06:26:27.910377Z โ โ /[slug] 1.44 kB 88.4 kB 2023-04-01T06:26:27.910508Z โ โ /404 181 B 82 kB 2023-04-01T06:26:27.910654Z โ โ /error 520 B 82.3 kB 2023-04-01T06:26:27.910769Z โ โ /Kannada1 6.8 kB 93.8 kB 2023-04-01T06:26:27.910886Z โ โ /testimonials 268 B 82 kB 2023-04-01T06:26:27.911031Z + First Load JS shared by all 113 kB 2023-04-01T06:26:27.911159Z โ chunks/framework-2c79e2a64abdb08b.js 45.2 kB 2023-04-01T06:26:27.911268Z โ chunks/main-74c4d6b2b5c362f3.js 26.9 kB 2023-04-01T06:26:27.911375Z โ chunks/pages/_app-fa9ebaa43989c74a.js 7.91 kB 2023-04-01T06:26:27.911496Z โ chunks/webpack-cb4c7cc1ae21d4e8.js 1.74 kB 2023-04-01T06:26:27.911631Z โ css/ff9ce28d5058e521.css 31.1 kB 2023-04-01T06:26:27.911752Z 2023-04-01T06:26:27.911873Z โ (Streaming) server-side renders with streaming (uses React 18 SSR streaming or Server Components) 2023-04-01T06:26:27.912Z โ (Static) automatically rendered as static HTML (uses no initial props) 2023-04-01T06:26:27.91211Z 2023-04-01T06:26:28.638339Z Finished 2023-04-01T06:26:28.639022Z Note: No functions dir at /functions found. Skipping. 2023-04-01T06:26:28.639274Z Validating asset output directory 2023-04-01T06:26:29.303403Z Deploying your site to Cloudflare's global network... 2023-04-01T06:26:30.877265Z 2023-04-01T06:26:31.008702Z [31mโ [41;31m[[41;97mERROR[41;31m][0m [1mError: Pages only supports files up to 26.2 MB in size[0m 2023-04-01T06:26:31.009229Z 2023-04-01T06:26:31.00941Z cache/webpack/edge-server-production/0.pack is 108 MB in size 2023-04-01T06:26:31.009549Z 2023-04-01T06:26:31.009667Z 2023-04-01T06:26:31.009785Z [32mIf you think this is a bug then please create an issue at https://github.com/cloudflare/workers-sdk/issues/new/choose[0m 2023-04-01T06:26:31.021768Z Failed: upload process exited with code: 1 2023-04-01T06:26:31.86772Z Failed: an internal error occurred 2023-04-01T06:26:31.86772Z Error: Failed to publish assets. For support, join our Discord (https://discord.gg/cloudflaredev) or create a ticket and reference the deployment ID: e176de6d-e018-4c18-923b-887c933bbb0a