Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting NITRO_PRESET= in build step does not set the preset correctly #886

Closed
madebyfabian opened this issue Jan 26, 2023 · 1 comment
Closed
Labels
bug Something isn't working preset

Comments

@madebyfabian
Copy link

madebyfabian commented Jan 26, 2023

Environment


  • Operating System: Darwin
  • Node Version: v16.18.1
  • Nuxt Version: 3.1.1
  • Nitro Version: 2.1.0
  • Package Manager: npm@8.19.2
  • Builder: vite
  • User Config: modules, typescript, build, nitro, runtimeConfig, app, routeRules
  • Runtime Modules: @nuxtjs/tailwindcss@6.3.0, nuxt-simple-sitemap@1.0.5
  • Build Modules: -

Reproduction

Deploy the https://github.com/pi0/nuxt-on-the-edge to vercel

Describe the bug

In the build you can see that it still builds with the default vercel preset, even though the build command is NITRO_PRESET=vercel-edge nuxt build.

When setting it up inside nuxt it works though.

// nuxt.config.ts
export default defineNuxtConfig({
	nitro: {
		preset: 'vercel-edge',
	},
})

Additional context

Bildschirm­foto 2023-01-26 um 14 35 52

Bildschirm­foto 2023-01-26 um 14 36 15

Logs

No response

@madebyfabian
Copy link
Author

madebyfabian commented Oct 11, 2023

Came across this issue :D
Seems working again with latest nuxt 3.7.4/nitro 2.6.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working preset
Projects
None yet
Development

No branches or pull requests

2 participants