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
Not sure if it's an issue or a question but I disabled ssr from the svelte.config.js file.
I am using the adapter static version "1.0.0-next.13" and @sveltejs/kit "next".
I still have to use tricks during development on the vite server, for example the following so that the code is not executed on the server. Why is this code still executed server side?
Some packages I use will return errors like "Websocket not defined" if I run them on the server. There is really no point for me to develop while code is executed ssr if I am just producing a static SPA, so how to disable all that?
try {
process.browser
} catch (e) { //Will run only in the browser
}
Not sure if it's an issue or a question but I disabled ssr from the svelte.config.js file.
I am using the adapter static version "1.0.0-next.13" and @sveltejs/kit "next".
I still have to use tricks during development on the vite server, for example the following so that the code is not executed on the server. Why is this code still executed server side?
Some packages I use will return errors like "Websocket not defined" if I run them on the server. There is really no point for me to develop while code is executed ssr if I am just producing a static SPA, so how to disable all that?
this is my config:
The text was updated successfully, but these errors were encountered: