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 am trying to deploy a SSR Vite app to vercel and it's mostly working fine. The problem is that Vite keeps the index.html in the root folder, so Vercel serves the static index.html file instead of calling the express route for the root path.
Is there any way I can work around this? e.g. keep all files during build but only copy the build artifactso to the output.
I only need the source files during the build step so, only built files should be kept and copied to output.
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
-
Question
Please also see this discussion from 2021 #5723
I am trying to deploy a SSR Vite app to vercel and it's mostly working fine. The problem is that Vite keeps the
index.html
in the root folder, so Vercel serves the static index.html file instead of calling the express route for the root path.Is there any way I can work around this? e.g. keep all files during build but only copy the build artifactso to the output.
I only need the source files during the build step so, only built files should be kept and copied to output.
Beta Was this translation helpful? Give feedback.
All reactions