Khaled
Khaled
SSolidJS
Created by Khaled on 7/4/2024 in #support
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>
);
2 replies