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've been using vite-ssr successfully on multiple projects that share a common codebase. Most of them run in client mode but I have a couple that run in SSR mode. At some point, SSR stopped working locally when developing. It looks like it's working but nothing ever seems to run on the server and when I check the site's source, the HTML is just the template page and has no server-rendered attribute.
In production, the site runs in express and I have a similar setup locally, but SSR mode also doesn't work if I run dev-ssr instead of the express version.
Is there anything you can point me to look at in order to get it working? I've been poking through both your code and my own and can't see anything obvious that's preventing it. The setup between dev and production is also very similar so not sure why it works on one and not the other!
Here's some output from the site that might be useful:
npm output from the site starting in dev mode:
console log from the site in a browser in dev mode:
HTML output (snipped)
site log from Kubernetes in production:
site HTML output in production
If I can provide anything else please let me know!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I've been using vite-ssr successfully on multiple projects that share a common codebase. Most of them run in client mode but I have a couple that run in SSR mode. At some point, SSR stopped working locally when developing. It looks like it's working but nothing ever seems to run on the server and when I check the site's source, the HTML is just the template page and has no server-rendered attribute.
In production, the site runs in express and I have a similar setup locally, but SSR mode also doesn't work if I run dev-ssr instead of the express version.
Is there anything you can point me to look at in order to get it working? I've been poking through both your code and my own and can't see anything obvious that's preventing it. The setup between dev and production is also very similar so not sure why it works on one and not the other!
Here's some output from the site that might be useful:
npm output from the site starting in dev mode:
console log from the site in a browser in dev mode:
HTML output (snipped)
site log from Kubernetes in production:
site HTML output in production
If I can provide anything else please let me know!
Many thanks,
Tom
Beta Was this translation helpful? Give feedback.
All reactions