Coder Social home page Coder Social logo

Comments (5)

ijjk avatar ijjk commented on June 22, 2024

Hi, can you provide additional context, is a folder that's prefixed with . present in your project that includes large files?

from next.js.

avitorio avatar avitorio commented on June 22, 2024

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.

avitorio avatar avitorio commented on June 22, 2024

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.

ijjk avatar ijjk commented on June 22, 2024

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.

avitorio avatar avitorio commented on June 22, 2024

Hey, thanks for the suggestion, but even with that ignore rule 14.0.4-canary.36 still breaks my build :/

avitorio/outstatic#197

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)

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.