Deimos
Deimos
Explore posts from servers
SSolidJS
Created by Deimos on 5/24/2024 in #support
How do I redirect properly?
Also, can I ask you a question ? How can I check session using useSession from vinxi/http inside my entry-server.jsx. // @refresh reload import { createHandler, StartServer } from "@solidjs/start/server"; export default createHandler( () => ( <StartServer document={({ assets, children, scripts }) => ( <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <link rel="icon" href="/favicon.ico" /> {assets} </head> <body> <div id="app">{children}</div> {scripts} </body> </html> )} /> ), { mode: "stream" } );
24 replies
SSolidJS
Created by Deimos on 5/24/2024 in #support
How do I redirect properly?
Now it works when I disable cache inside network tab.
24 replies
SSolidJS
Created by Deimos on 5/24/2024 in #support
How do I redirect properly?
Yes I'm experiencing the same but different. Even if I restart the dev server it does't work.
24 replies
SSolidJS
Created by Deimos on 5/24/2024 in #support
How do I redirect properly?
I will try it!. Thank you so much for your suggestions.
24 replies
SSolidJS
Created by Deimos on 5/24/2024 in #support
How do I redirect properly?
Is it related to the use of FileRoutes? Should I just avoid FileRoutes?
24 replies
SSolidJS
Created by Deimos on 5/24/2024 in #support
How do I redirect properly?
It raises Hydration mismatch when I manually go to /in route. Also, redirect doesn't work.
24 replies
SSolidJS
Created by Deimos on 5/24/2024 in #support
How do I redirect properly?
Currently I do not have a folder called "in". I use FileRoutes. Do I have to create one to make it work? It navigates when I try using useNavigate in client side and it triggers 404 page. But redirect isn't working.
24 replies
SSolidJS
Created by Deimos on 5/24/2024 in #support
How do I redirect properly?
Do I have to manually get the location from response header and then navigate using useNavigate?
24 replies
SSolidJS
Created by Deimos on 5/24/2024 in #support
How do I redirect properly?
It is /in in the response header.
24 replies
SSolidJS
Created by Deimos on 5/24/2024 in #support
How do I redirect properly?
No errors raised but it doesn't redirect to /in. It stays in /login.
24 replies
SSolidJS
Created by Deimos on 5/24/2024 in #support
How do I redirect properly?
Oh I see. How should I properly do it?
24 replies
SSolidJS
Created by Deimos on 5/23/2024 in #support
Problem importing useSession from vinxi/http
Thank you it worked!
3 replies