Create .env.local with a valid GITHUB_ID and GITHUB_SECRET (or a GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET, and change app/components/Auth.tsx from signIn('github') to signIn('google'))
./run.sh bad (for broken example) or ./run.sh good (for working example)
Navigate to root page, open devtools
Click "Sign in"
What is the expected behavior?
"Sign in" is replaced with "Sign out" and session is populated.
What do you see instead?
In the console: VM190:1 Uncaught (in promise) SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON.
Additional information
% node --version
v20.9.0
EDIT: I previously thought that NextJS's standalone output mode was the trigger, but it turns out that just passing --bun to bun start is enough.
What version of Bun is running?
1.0.10+d85bd49d8
What platform is your computer?
Darwin 23.0.0 arm64 arm
What steps can reproduce the bug?
.env.local
with a validGITHUB_ID
andGITHUB_SECRET
(or aGOOGLE_CLIENT_ID
andGOOGLE_CLIENT_SECRET
, and changeapp/components/Auth.tsx
fromsignIn('github')
tosignIn('google')
)./run.sh bad
(for broken example) or./run.sh good
(for working example)What is the expected behavior?
"Sign in" is replaced with "Sign out" and session is populated.
What do you see instead?
In the console:
VM190:1 Uncaught (in promise) SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
.Additional information
EDIT: I previously thought that NextJS's standalone output mode was the trigger, but it turns out that just passing
--bun
tobun start
is enough.