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
I still don't have understandable example of SSR support, because it's very depends on you server-side implementation. But basic example on express could looks like:
require('svelte/register');
...
constApp=require('./App.svelte').default;
...
app.get('*',(req,res)=>{// run router hookrequire('svelte-pathfinder/ssr')();// navigate router to current server URLgoto(req.url);// render an App with current stateres.render('index',App.render(/* some data */));});
But I definitely advise everybody to use sveltekit if you need to take universal approach in your apps.
If there is any vision of how to do that - I'd like to know asap :)
The text was updated successfully, but these errors were encountered: