kit
kit copied to clipboard
src/instrumentation.server.ts is not used with `vite preview`
Describe the bug
If you have a src/instrumentation.server.ts file along with the experimental flag it will run when you do vite dev. It should also run when you do vite preview
Reproduction
create new project, add experimental.instrumentation.server: true, add src/instrumentation.server.ts with a console.log or whatever, vite build && vite preview, observe that the module is not loaded
Logs
System Info
latest
Severity
annoyance
Additional Information
No response
Any workaround for this? I've created a reproduction here: https://www.sveltelab.dev/c903w2f1rqmz823?files=.%2Fsrc%2Finstrumentation.server.ts