SolidStart Vercel deployment issue with CSR
Hi !
When I go to the website page, it just downloads the HTML with no file extension, nothing is shown in the browser.
When I go to
/__nitro
though, I can see stuff but nothing shows up too, probably because I don't handle 404 yet.
Here's my vite configuration :
And you can even find the repository here https://github.com/Vexcited/Signatures-IUT-Limoges/tree/main/packages/website
Is there an issue with my configuration or another issue with CSR ?10 Replies
here's my project settings too, i am using solidstart in a monorepo and i need to build in another directory before building the solidstart project, thats why i had to override stuff
and of course i put the root directory as asked
alright so after handling 404s, going to
/__nitro
(that redirects to /
) fixes the issue
even though i think that something is still wrong TTis it because the
index
is in txt
format ?content :
was able to fix doing
vinxi build && cp ./.data/config.json ./.vercel/output/config.json && rm ./.vercel/output/static/index*
in my build script in package.json
.data/config.json
is just this :
why is that way tho?
is this a bug?
no idea :0akashrug:
Ryan Carniato (@RyanCarniato) on X
@gabrielmfern The code is available here: https://t.co/wgjVYCfhQQ
Twitter
Ryan also was able to