Coder Social home page Coder Social logo

build issue on vercel about nuxt HOT 7 CLOSED

baixiaoyu2997 avatar baixiaoyu2997 commented on September 21, 2024
build issue on vercel

from nuxt.

Comments (7)

danielroe avatar danielroe commented on September 21, 2024 1

You should not need to set a nitro preset. In fact the correct preset for generating on Vercel is Vercel-static, which should be automatically detected.

from nuxt.

manniL avatar manniL commented on September 21, 2024 1

Nope, that's only a side effect of overriding presets (instead of letting Nuxt + Nitro find the right one fitting to your deploy environment) ☺️

from nuxt.

stackblitz avatar stackblitz commented on September 21, 2024

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

from nuxt.

danielroe avatar danielroe commented on September 21, 2024

This seems unlikely to be a Nuxt issue. Has it just started occurring? Have you reached out to Vercel support?

Do you have a .env.production file?

from nuxt.

baixiaoyu2997 avatar baixiaoyu2997 commented on September 21, 2024

This seems unlikely to be a Nuxt issue. Has it just started occurring? Have you reached out to Vercel support?

Do you have a .env.production file?

i don't have .env.prodction on github, It only exists locally.

but when i delete NITRO_PRESET=vercel, build success,

Have you reached out to Vercel support? if you mean search on document, yes, not help, the error message is too general, I cannot find the cause of the problem

from nuxt.

baixiaoyu2997 avatar baixiaoyu2997 commented on September 21, 2024

Has it just started occurring?
Unfortunately, this is a repository that is soon to be deprecated, and the date I can provide where this issue was not present is 55 days ago. Should I report this bug to Vercel or Nitro instead?

from nuxt.

baixiaoyu2997 avatar baixiaoyu2997 commented on September 21, 2024

You should not need to set a nitro preset. In fact the correct preset for generating on Vercel is Vercel-static, which should be automatically detected.

I knew I didn't need to set it and was only using it to test local builds, so I combined them into one script(I learned my lesson, I should have separated them), but what I didn't know was that I should use vercel-static

big thanks♥️, daniel, so , this isn't a bug? then you can close it at will

from nuxt.

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.