0

When I start my Nuxt 3 application and the defined port (from environment variable) is already in use, Nuxt uses a random port to start.

I would like to be able to disable this behavior, and just not start the application.

I added the strictPort option to true in the nuxt.config.ts file.
But it doesn't work.

export default defineNuxtConfig({
    ...
    vite: {
        server: {
            strictPort: true,
        }
    },
    ...
}

Does anyone have an idea?

0 Answers0