Skip to content

Commit

Permalink
fix: cleaning variables
Browse files Browse the repository at this point in the history
  • Loading branch information
0x0elliot committed Sep 16, 2023
1 parent 53fbbd5 commit f84762e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions backend/authentication/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def google_login(request):
REPLACEMENT_DOMAIN = "localhost:3000"

if settings.DEMO_INSTANCE:
REPLACEMENT_DOMAIN = settings.PROTOTYPE_DOMAIN
REPLACEMENT_DOMAIN = settings.API_DOMAIN

REPLACEMENT_DOMAIN += "/api"

Expand All @@ -136,7 +136,7 @@ def google_login(request):
REPLACEMENT_DOMAIN = "localhost:3000"

if settings.DEMO_INSTANCE:
REPLACEMENT_DOMAIN = settings.PROTOTYPE_DOMAIN
REPLACEMENT_DOMAIN = settings.API_DOMAIN

REPLACEMENT_DOMAIN += "/api"

Expand All @@ -162,7 +162,7 @@ def github_login(request):
REPLACEMENT_DOMAIN = "localhost:3000"

if settings.DEMO_INSTANCE:
REPLACEMENT_DOMAIN = settings.PROTOTYPE_DOMAIN
REPLACEMENT_DOMAIN = settings.API_DOMAIN

REPLACEMENT_DOMAIN += "/api"

Expand Down
6 changes: 3 additions & 3 deletions backend/backend/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,9 @@
"kapersky1337",
]

PROTOTYPE_DOMAIN = "ipfs.thirdeyelabs.xyz"
API_DOMAIN = "api.thirdeyelabs.xyz:8000"

PROTOTYPE_URL = f"https://{PROTOTYPE_DOMAIN}/"
API_DOMAIN = f"http://{API_DOMAIN}/"

FRONTEND_URL = (
PROTOTYPE_URL
Expand Down Expand Up @@ -302,7 +302,7 @@
# Spectacular settings
SPECTACULAR_SETTINGS = {
"TITLE": "ThirdEye",
"DESCRIPTION": "ThirdEyeEye OpenAPI Documentation",
"DESCRIPTION": "ThirdEye OpenAPI Documentation",
"VERSION": "0.0.1",
"SERVE_INCLUDE_SCHEMA": False,
"SERVERS": [
Expand Down

0 comments on commit f84762e

Please sign in to comment.