-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
fix(schema): disallow setting vite server properties #7317
fix(schema): disallow setting vite server properties #7317
Conversation
β Deploy Preview for nuxt3-docs canceled.
|
I think makes sense to server |
I want to set Vite build sourcemap option to "hidden" mode so my nuxtConfig was: vite: {
build: {
sourcemap: "hidden",
},
}, this PR breaks my config then how can I passed some configurations to Vite with this new change? |
Setting vite: {
server: {
hmr: ...
}
} But |
@tobiasdiez Can you please open a PR to limit never to only port/host options? Configuring vite.server.hmr is valid. |
Will fix this |
π Linked issue
nuxt/nuxt#14828
β Type of change
π Description
Disallows setting the port via
vite.server.port
in thenuxt.config.ts
.@pi0 Any other options we should disallow? Or
vite.server
in general?π Checklist