unjs / nitro

Next Generation Server Toolkit. Create web servers with everything you need and deploy them wherever you prefer.
https://nitro.unjs.io
MIT License
5.89k stars 496 forks source link

fix(netlify): ensure preview command is correct #2561

Closed danielroe closed 3 months ago

danielroe commented 3 months ago

๐Ÿ”— Linked issue

resolves https://github.com/nuxt/nuxt/issues/24015

โ“ Type of change

๐Ÿ“š Description

You can also reproduce locally - the issue is that relative paths are resolved relative to output.dir which is not overridden in these netlify presets. And in fact no static directory is produced.

๐Ÿ“ Checklist