Replies: 1 comment
-
It depend on your project structure. I am using vike-node. Built on top of vike. Vike provides SSR for Vite. And I ever got problem like you have, just define the static path correctly
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
I have the following boilerplate code, which is basically created with the command:
bunx create-vite-extra
and then choosing.I have simplified the
server.js
file a bit for brevity.Now the problem is, that my CSS and JavaScript file gives a 404 back:
The problem, I assume, is with the following line:
But I sadly don't know how to fix it.
The equivalent line of code using sirv is:
Beta Was this translation helpful? Give feedback.
All reactions