Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing nhost error #1407

Merged
merged 4 commits into from
Dec 13, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .env.development
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
REACT_APP_PLAY_API_URL=https://api.github.com/repos/reactplay
REACT_APP_NHOST_BACKEND_URL=https://rgkjmwftqtbpayoyolwh.nhost.run
REACT_APP_NHOST_BACKEND_URL=https://rgkjmwftqtbpayoyolwh.hasura.ap-southeast-1.nhost.run
REACT_APP_NHOST_AUTH_URL=https://rgkjmwftqtbpayoyolwh.auth.ap-southeast-1.nhost.run
REACT_APP_NHOST_VERSION=v1
REACT_APP_NHOST_ENDPOINT=graphql
REACT_APP_PLAY_WEB_SVC=https://api.reactplay.io/.netlify/functions/server
Expand Down
4 changes: 2 additions & 2 deletions src/common/const/nhost.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const AUTH_URL = (redirectURL, provider = 'github') => {
return `${
process.env.REACT_APP_NHOST_BACKEND_URL
}/v1/auth/signin/provider/${provider}?redirectTo=${encodeURI(redirectURL)}`;
process.env.REACT_APP_NHOST_AUTH_URL
}/v1/signin/provider/${provider}?redirectTo=${encodeURI(redirectURL)}`;
};

export const NHOST = { AUTH_URL };