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
I can open the page: https://try-t3-app.linwise.com/
Surprisingly, you see on the page it says "Logged in as", and "sign out".
I cleared all the cookies, and tried browser incognito mode. It still does not work.
When I go to https://try-t3-app.linwise.com/api/auth/signin, it says Server error.
Provide environment information
npx envinfo --system --binaries
System:
OS: Linux 6.1 Debian GNU/Linux 12 (bookworm) 12 (bookworm)
CPU: (2) x64 AMD EPYC 7R32
Memory: 2.24 GB / 3.78 GB
Container: Yes
Shell: 5.9 - /usr/bin/zsh
Binaries:
Node: 20.14.0 - ~/.nvm/versions/node/v20.14.0/bin/node
npm: 10.7.0 - ~/.nvm/versions/node/v20.14.0/bin/npm
pnpm: 9.14.4 - ~/.nvm/versions/node/v20.14.0/bin/pnpm
ct3aMetadata.initVersion
7.38.1
Describe the bug
I
NEXTAUTH_URL=https://try-t3-app.linwise.com/
in .env too.It works when I run "pnpm dev", both on my local machine and on the debian server.It does not work after I run "pnpm build" and use pm2 to start it like this:
next.js config, no standalone output way:
PORT=3006 pm2 start npm --name try-t3-app -- start
next.js config, standalone output way:
PORT=3006 pm2 start .next/standalone/server.js --name try-t3-app
I can open the page: https://try-t3-app.linwise.com/
Surprisingly, you see on the page it says "Logged in as", and "sign out".
I cleared all the cookies, and tried browser incognito mode. It still does not work.
When I go to
https://try-t3-app.linwise.com/api/auth/signin
, it saysServer error
.This is the redirect url I have on discord oauth2 settings page:
https://try-t3-app.linwise.com/api/auth/callback/discord
Reproduction repo
https://github.com/shrekuu/try-t3-app
To reproduce
Just build the app and serve it locally. Update the
AUTH_DISCORD_ID
,AUTH_DISCORD_SECRET
,DATABASE_URL
in your local .env file.You may need to add
NEXTAUTH_URL="http://localhost:3000"
too.Make sure to use MySQL, if not, revert these changes and you are good to go.
shrekuu/try-t3-app@90e04df
Additional information
The text was updated successfully, but these errors were encountered: