You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
run node .output/server/index.mjs
If you had problem at step 3 due to no environment load, you can add cp .env ./.output/server/.env into build script to pass this step
Launch http://{your-ip}:3000
You will see the web app launched, but after signip/signup then click on Posts, it will bring you back to login again. Debug on fetchUser server func, it always return null session.
Expected behavior
User can access authed route after login in production build
Screenshots or Videos
No response
Platform
OS: macOS
Browser: Chrome
Version: latest
Additional context
No response
The text was updated successfully, but these errors were encountered:
Which project does this relate to?
Router
Describe the bug
useAppSession always return null session in node-server production build
Your Example Website or App
https://codesandbox.io/p/devbox/github/tanstack/router/tree/main/examples/react/start-basic-auth
Steps to Reproduce the Bug or Issue
npm install && npm run build
node .output/server/index.mjs
If you had problem at step 3 due to no environment load, you can add
cp .env ./.output/server/.env
into build script to pass this stephttp://{your-ip}:3000
You will see the web app launched, but after signip/signup then click on
Posts
, it will bring you back to login again. Debug onfetchUser
server func, it always return null session.Expected behavior
User can access authed route after login in production build
Screenshots or Videos
No response
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: