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

Configure URL values for staging only #42

Merged
merged 1 commit into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
4 changes: 1 addition & 3 deletions dandiapi/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,13 +198,11 @@ def mutate_configuration(configuration: type[ComposedConfiguration]):
if 'ALLOWED_HOSTS' not in globals():
ALLOWED_HOSTS = []

# api.lincbrain.org
ALLOWED_HOSTS += [
'linc-staging-terraform-83d11b79c499.herokuapp.com',
'api.lincbrain.com',
'api.lincbrain.org',
'staging-api.lincbrain.org'
]



# NOTE: The staging configuration uses a custom OAuth toolkit `Application` model
Expand Down
8 changes: 4 additions & 4 deletions web/netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ command = "yarn run build"
# Staging
[context.master.environment]
NODE_VERSION = "20" # Netlify defaults to node.js 10, but @types/node requires a more recent version
VITE_APP_OAUTH_API_ROOT = "https://api.lincbrain.org/oauth/"
VITE_APP_OAUTH_API_ROOT = "https://staging-api.lincbrain.org/oauth/"
VITE_APP_OAUTH_CLIENT_ID = "Dk0zosgt1GAAKfN8LT4STJmLJXwMDPbYWYzfNtAl"
VITE_APP_DANDI_API_ROOT = "https://api.lincbrain.org/api/"
VITE_APP_DANDI_API_ROOT = "https://staging-api.lincbrain.org/api/"
VITE_APP_SENTRY_DSN = "https://833c159dc622528b21b4ce4adef6dbf8@o4506237212033024.ingest.sentry.io/4506237213212672"
VITE_APP_SENTRY_ENVIRONMENT = "staging"

# Deploy previews
[context.deploy-preview.environment]
NODE_VERSION = "20" # Netlify defaults to node.js 10, but @types/node requires a more recent version
VITE_APP_OAUTH_API_ROOT = "https://api.lincbrain.org/oauth/"
VITE_APP_OAUTH_API_ROOT = "https://staging-api.lincbrain.org/oauth/"
VITE_APP_OAUTH_CLIENT_ID = "Dk0zosgt1GAAKfN8LT4STJmLJXwMDPbYWYzfNtAl"
VITE_APP_DANDI_API_ROOT = "https://api.lincbrain.org/api/"
VITE_APP_DANDI_API_ROOT = "https://staging-api.lincbrain.org/api/"
VITE_APP_SENTRY_DSN = "https://833c159dc622528b21b4ce4adef6dbf8@o4506237212033024.ingest.sentry.io/4506237213212672"
VITE_APP_SENTRY_ENVIRONMENT = "staging"

Expand Down
Loading