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)
- Failed to reload dynamic routes: Error: Catch-all must be the last part of the URL.
- static-export get searchParams is empty HOT 1
- static-export get searchParams is empty
- generateMetadata example not working HOT 1
- Use of deprecated dependency that leaks memory in `eslint-config-next` (inflight 1.0.6)
- 'next/dynamic' - SSR does not seem to work for dynamically imported components. HOT 1
- Duplicate Requests in Next.js 14 on Server Side with Parallel Routes and Intercepting Routes
- `router.replace()` on pages with query params cause entire page re-render on Next 14.2.3 HOT 1
- Form state not updating and suspended components reloading on first server action submission when using revalidatePath with loading.tsx in app router HOT 1
- `router.replace()` on pages with query params cause entire page re-render on Next 14.2.3 HOT 1
- Suspense boundary broken (ignored) after second server action call HOT 8
- Nonce exposed to the DOM
- [Bug][Next.js13]: renderError does not follow the err info of __NEXT_DATA__ when hytrate in client
- Docs: Wrong link for UseFormState. HOT 1
- `no-store` cache in nextjs config doesn't disable disk caching.
- The `maxDuration` setting in the api route config, as per the documentation, isn't being honored on dev or on Vercel. We're on the pro plan. HOT 1
- TypeError: Cannot read properties of undefined (reading 'ReactCurrentOwner') when rendering model using react-three libraries HOT 1
- next/og don't work when turbo is enabled in dev HOT 1
- Metadata is not generated for intercepting routes HOT 1
- Monorepo self-referencing package imports don't resolve in certain cases with Turbopack
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.