S
SolidJS6mo ago
Khaled

Issue with Solid JS Routing After Deployment

Hi everyone, Today, I finished my project. However, when I tried to build and deploy it on Cloudflare/Vercel/AWS, I encountered an issue. During deployment, Solid JS doesn't route anything, and when I navigate to the login route, it doesn't display anything. This problem doesn't occur when I run the project locally; everything works as expected. Does anyone have any idea what might be causing this?
"solid-js": "^1.8.11"
"solid-js": "^1.8.11"
return (
<Router root={undefined}>
<Route
path="/"
component={Register}
/>
<Route
path="/users"
component={NotFound}
/>
</Router>
);
return (
<Router root={undefined}>
<Route
path="/"
component={Register}
/>
<Route
path="/users"
component={NotFound}
/>
</Router>
);
1 Reply
Madaxen86
Madaxen866mo ago
Can you provide your app.config.ts? Did you use the provider for the nitro server config: https://nitro.unjs.io/deploy/providers/vercel
Vercel - Nitro
Deploy Nitro apps to Vercel functions or edge.
Want results from more Discord servers?
Add your server