Skip to content

Commit

Permalink
Merge pull request #42 from lincbrain/ak-staging
Browse files Browse the repository at this point in the history
Configure values for staging only
  • Loading branch information
aaronkanzer authored Jan 25, 2024
2 parents 134b87c + 719a0b8 commit 2f5ae2d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
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

0 comments on commit 2f5ae2d

Please sign in to comment.