Skip to content

Commit

Permalink
Merge pull request #17 from Lukasdotcom/remove-DOMAIN-enviromental
Browse files Browse the repository at this point in the history
Removes DOMAIN enviromental variable
  • Loading branch information
Lukasdotcom authored Jun 15, 2022
2 parents 5c00ed6 + 9cc829c commit 296b472
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion development/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ services:
- MYSQL_DATABASE=bundesliga
- MIN_UPDATE_TIME=120 # Minimum amount of seconds to pass before the data updates on Fri, Sat, and Sun to prevent spamming the api.
- BUNDESLIGA_API= # How to get this value is in the README
- DOMAIN=http://localhost # unless you are not using localhost to access the website you do not have to change this
# Get your oauth details for sign in with google and fill it in below
- GOOGLE_ID=none
- GOOGLE_SECRET=none
Expand Down
1 change: 0 additions & 1 deletion docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ services:
- MYSQL_DATABASE=bundesliga
- MIN_UPDATE_TIME=120 # Minimum amount of seconds to pass before the data updates on Fri, Sat, and Sun to prevent spamming the api.
- BUNDESLIGA_API= # How to get this value is in the README
- DOMAIN=http://localhost # Change this to your domain
# Get your oauth 2.0 details for sign in with google and fill it in below
- GOOGLE_ID=none
- GOOGLE_SECRET=none
Expand Down
2 changes: 1 addition & 1 deletion pages/api/invite/[invite].js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@ export default async function handler(req, res) {
connection.end()
} else {
// Redirects the user if they are not logged in
res.redirect(307, `/api/auth/signin?callbackUrl=${encodeURIComponent(process.env.DOMAIN + "/api/invite/" + req.query.invite)}`).end()
res.redirect(307, `/api/auth/signin?callbackUrl=${encodeURIComponent(process.env.NEXTAUTH_URL + "/api/invite/" + req.query.invite)}`).end()
}
}

0 comments on commit 296b472

Please sign in to comment.