Skip to content

Commit

Permalink
Set environment variables SPACES_MODE to rooms
Browse files Browse the repository at this point in the history
  • Loading branch information
Siilwyn committed Apr 3, 2023
1 parent 578ac1f commit 656c659
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export function generateRoutes(
routes.push(`/nl/gebouwen/${building.i18n.nl.slug}/`);
}

console.log({ spacesMode: process.env.SPACES_MODE });
if (process.env.SPACES_MODE == "rooms") {
for (const room of rooms) {
const building = buildingMap[room.buildingNumber];
Expand Down
3 changes: 2 additions & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ NODE_ENV = "production"
NPM_CONFIG_AUDIT = "false"
NPM_CONFIG_FUND = "false"
NPM_FLAGS = "--ignore-scripts"
SPACES_MODE = "rooms"

[build.processing.html]
pretty_urls = true
Expand All @@ -18,4 +19,4 @@ Strict-Transport-Security = "max-age=63072000; includeSubDomains; preload"
Referrer-Policy = "no-referrer-when-downgrade"
X-Content-Type-Options = "nosniff"
X-Frame-Options = "SAMEORIGIN"
X-XSS-Protection = "1; mode=block"
X-XSS-Protection = "1; mode=block"

0 comments on commit 656c659

Please sign in to comment.