Skip to content

Commit

Permalink
Revert "Revert "Revert "streamline netlify environments"""
Browse files Browse the repository at this point in the history
This reverts commit e4ac6e1.
  • Loading branch information
TangoYankee committed Jul 13, 2023
1 parent 1bf8a65 commit 634666f
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
[build]
command = "yarn build"
environment = {}

[context.develop]
command = "yarn build --environment=development"

[context.develop.environment]
API_HOST="https://layers-api-staging.planninglabs.nyc"
CARTO_USER="dcpadmin"
command = "CARTO_USER=dcpadmin API_HOST=https://layers-api-staging.planninglabs.nyc yarn build --environment=staging"
environment = {}

[context.data-qa]
command = "CARTO_USER=dcpadmin API_HOST=https://layers-api-data.planninglabs.nyc yarn build --environment=staging"
environment = {}

[context.data-qa.environment]
API_HOST="https://layers-api-data.planninglabs.nyc"
CARTO_USER="dcpadmin"

[context.production]

[context.production.environment]
API_HOST="https://layers-api.planninglabs.nyc"
CARTO_USER="planninglabs"
[context.master]
command = "CARTO_USER=planninglabs API_HOST=https://layers-api.planninglabs.nyc yarn build --environment=production"
environment = {}

0 comments on commit 634666f

Please sign in to comment.