Skip to content

Commit

Permalink
Revert @types/vhost
Browse files Browse the repository at this point in the history
  • Loading branch information
bhollis committed Aug 31, 2024
1 parent 94b4c99 commit a21de25
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,28 +53,28 @@ switch (process.env.VHOST) {
vhost('beta.dim.gg', (req, res: express.Response) => {
// Instruct CF to cache for 15 minutes
res.set('Cache-Control', 'max-age=900');
res.redirect(`https://beta.destinyitemmanager.com${ req.originalUrl}`);
res.redirect(`https://beta.destinyitemmanager.com${req.originalUrl}`);
}),
);
app.use(
vhost('app.dim.gg', (req, res: express.Response) => {
// Instruct CF to cache for 15 minutes
res.set('Cache-Control', 'max-age=900');
res.redirect(`https://app.destinyitemmanager.com${ req.originalUrl}`);
res.redirect(`https://app.destinyitemmanager.com${req.originalUrl}`);
}),
);
app.use(
vhost('pr.dim.gg', (req, res: express.Response) => {
// Instruct CF to cache for 15 minutes
res.set('Cache-Control', 'max-age=900');
res.redirect(`https://pr.destinyitemmanager.com${ req.originalUrl}`);
res.redirect(`https://pr.destinyitemmanager.com${req.originalUrl}`);
}),
);
app.use(
vhost('guide.dim.gg', (req, res: express.Response) => {
// Instruct CF to cache for 15 minutes
res.set('Cache-Control', 'max-age=900');
res.redirect(`https://github.com/DestinyItemManager/DIM/wiki${ req.originalUrl}`);
res.redirect(`https://github.com/DestinyItemManager/DIM/wiki${req.originalUrl}`);
}),
);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"@types/morgan": "^1.9.9",
"@types/pg": "^8.11.8",
"@types/uuid": "^9.0.8",
"@types/vhost": "^3.0.9",
"@types/vhost": "3.0.7",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"db-migrate": "^0.11.14",
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a21de25

Please sign in to comment.