You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a mild annoyance but a trivial fix. The only reason this isn't a PR is because I don't see any obvious way to put tests around this. If you don't care, or can point me in the right direction, I'll send a PR.
I also saw the suggestion to stop using svelte-kit preview in favor of vite preview which looks like it would make this issue moot.
The text was updated successfully, but these errors were encountered:
Describe the bug
Looking at https://github.com/sveltejs/kit/blob/master/packages/kit/src/cli.js#L167-L187 you can see from inspection that these two config entries will always be overwritten because the options are defaulted.
svelte-kit dev
doesn't share this problem because these options are not defaulted.Reproduction
npm create svelte foobar
svelte.config.js
and setconfig.kit.vite.preview.port
to3001
npm run preview
Logs
System Info
Severity
annoyance
Additional Information
This is a mild annoyance but a trivial fix. The only reason this isn't a PR is because I don't see any obvious way to put tests around this. If you don't care, or can point me in the right direction, I'll send a PR.
I also saw the suggestion to stop using
svelte-kit preview
in favor ofvite preview
which looks like it would make this issue moot.The text was updated successfully, but these errors were encountered: