SSR enable weird error #486
ricardopacheco
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I built a monolithic application (create new rails with default options) using vite-ruby and inertiajs. Everything is working fine so far, except the asset issue when using SSR.
sourceCodeDir
is infrontend
(same path on app,config);sourceCodeDir/templates/default/dist/assets/media/avatars/300-1.png
(The file exists and is called correctly)When I start procfile, everything looks ok...
I checked the
vite-dev
andvite-ssr
directories, they have the same structure and also the same files.However, looking at the page in if SSR mode, I have the following error:
http://localhost:3000/vite-dev/assets/300-1-fygQQA67.png 404 (Not Found)
. Again the file exists but gives an error. However, if I accesshttp://localhost:3000/vite-ssr/assets/300-1-fygQQA67.png
it works.looking at the page em js enabled:
Why?
config/vite.json
vite.config.ts
component
Beta Was this translation helpful? Give feedback.
All reactions