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

use `listhen` for preview command for static presets #2580

Open danielroe opened 2 months ago

danielroe commented 2 months ago

https://github.com/unjs/listhen

andresilva-cc commented 1 month ago

Came from https://github.com/nuxt/nuxt/issues/27923.

I'm also having this problem and had to manually copy everything from .output/public into .output/public/<baseURL>, that works for now.

There's also another problem related with baseURL when using Vitest with nuxt environment, it gives the following error:

[nuxt] error caught during app initialization FetchError: [GET] "/<baseURL>/_nuxt/builds/meta/test.json": 404 Cannot find any path matching /<baseURL>/_nuxt/builds/meta/test.json.

It's been reported here: https://github.com/nuxt/test-utils/issues/865