Comments (5)
Hi, can you provide additional context, is a folder that's prefixed with .
present in your project that includes large files?
from next.js.
Hi @ijjk
The .next
folder ends up being huge.
Here's some more context. These are all the static assets:
Here are the logs when the build fails:
https://gist.github.com/avitorio/6c2b65e5d3a39032500063e4cb1ebf7b
And when I click on Redeploy on Vercel it works:
https://gist.github.com/avitorio/8be24b8945e2714c6a7dbe2dc3fa35b2
I don't get why clicking Redeploy makes the build work, but not when it is triggered on commit via GitHub.
Here are the static assets. Some people mentioned the big build was probably due to having too many static assets.
https://github.com/avitorio/outstatic/tree/canary/apps/dev/public/
My /public amounts to 4mb.
from next.js.
One thing that is also worth noting is that in the repo I have an examples folder (/apps/advanced-blog-example
) with a next.js install that is basically identical to the /apps/dev
folder. The only difference being that the /apps/dev
install uses the outstatic: workspace:*
, while the example uses outstatic: latest
The example deploys fine with next.js 14.0.4-canary.36
and above. Whereas the apps/dev
install, which uses workspace:*
But the fact you mentioned the dot folder might be relevant since this has changed.
from next.js.
Hi, can you confirm you are properly ignoring the .next/cache
folder in your turbo.json
? Related config can be seen here https://turbo.build/repo/docs/core-concepts/caching/what-to-cache#exclusions
from next.js.
Hey, thanks for the suggestion, but even with that ignore rule 14.0.4-canary.36 still breaks my build :/
I've mentioned in my last comment that the "The example deploys fine with next.js 14.0.4-canary.36 and above. Whereas the apps/dev install, which uses workspace:*".
But I just realised that's not the case. It actually gives me the Error: A Serverless Function has exceeded the unzipped maximum size of 250 MB. : https://vercel.link/serverless-function-size
above 14.04-canary.36 as well.
from next.js.
Related Issues (20)
- Stale search parameters when using an anchor/fragment in the `as` property of `Link`
- Docs: 在next14.2.5版本中,怎么监听路由的的变化 HOT 1
- Response.redirect with relative URLs not working for Route Handlers HOT 1
- Error: Automatic publicPath is not supported in this browser
- Form error with server action on route change HOT 5
- Gravatar Error On Build HOT 3
- [Turbopack] [Dev] Error: Could not parse module '/app-router-context.js' with `next-auth` HOT 6
- Docs: Missing Instructions for Configuring next.config.mjs to Use next/mdx Package HOT 2
- Error instance not preserved in `onRequestError` HOT 3
- Material UI: Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.
- Error thrown when window.history.pushState is called with "" as the first argument HOT 1
- revalidateTag doesn't work after page navigation HOT 14
- Error: Connection closed - "not-found" with dynamic layout HOT 1
- Cannot add Image Tag in Sitemap.xml using app router HOT 1
- Empty query param name breaks proxy to external URL
- Client component isn't receiving server action response Next.js 14 HOT 1
- scroll restauration not working in 14.2.5 router.push HOT 1
- The client component cannot get the type attribute of the child component. HOT 1
- next.js version is not hidable HOT 1
- Cannot get final name for export 'isTag' of ./node_modules/domutils/node_modules/domhandler/lib/esm/index.js HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from next.js.