When I want to run the build in preview mode:
npx nuxi preview --dotenv .env
The server carshes:
╭──────────────────────────────────────────Preview Mode────────────────────────────────────────────╮
│ │
│ You are running Nuxt production build in preview mode. │
│ For production deployments, please directly use node {{ output.serverDir }}/index.mjs command. │
│ │
│ Node.js: v20.18.3 │
│ Nitro Preset: node-server │
│ Working directory: .output │
│ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
ℹ Loading .env. This will not be loaded when running the server in production.
ℹ Starting preview command: node {{ output.serverDir }}/index.mjs
It looks like the {{ output.serverDir }} is not being properly replaces.
I think it started after updating to newest Nuxt v3 version.
Any ideas?