Skip to content

Commit 30377de

Browse files
committed
修正
1 parent c9e9542 commit 30377de

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

config/initializers/sorcery.rb

+5-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414

1515
config.google.key = ENV['GOOGLE_CLIENT_ID']
1616
config.google.secret = ENV['GOOGLE_CLIENT_SECRET']
17-
config.google.callback_url = "http://localhost:3000/oauth/callback?provider=google"
17+
config.google.callback_url = if Rails.env.production?
18+
"https://utopia-app-20240808-f76c709c579e.herokuapp.com/oauth/callback?provider=google"
19+
else
20+
"http://localhost:3000/oauth/callback?provider=google"
21+
end
1822
config.google.user_info_mapping = {email: "email", name: "name"}
1923
end

0 commit comments

Comments
 (0)