Uh oh!
There was an error while loading. Please reload this page.
fix(schema): disallow setting vite server properties - #7317
Conversation
✅ Deploy Preview for nuxt3-docs canceled.
|
pi0
commented
Sep 7, 2022
I think makes sense to server |
nndnha
commented
Sep 7, 2022
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? |
tobiasdiez
commented
Sep 15, 2022
Setting vite: {
server: {hmr: ...
}}But |
pi0
commented
Sep 15, 2022
@tobiasdiez Can you please open a PR to limit never to only port/host options? Configuring vite.server.hmr is valid. |
TheAlexLichter
commented
Sep 15, 2022
Will fix this |
🔗 Linked issue
nuxt/nuxt#14828
❓ Type of change
📚 Description
Disallows setting the port via
vite.server.portin thenuxt.config.ts.@pi0 Any other options we should disallow? Or
vite.serverin general?📝 Checklist