Skip to content

Commit

Permalink
Update server for new domain.
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvarner committed Mar 18, 2024
1 parent 187100d commit 8ea63ce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ export const handler = createRequestHandler({
build,
mode: build.mode,
getLoadContext: (req, res) => {
console.log("🚀 ~ req, res:", req.headers.host);
let tenant = undefined;
const parts = req.headers.host.split(".");
if (parts.length >= 3) {
tenant = parts[0] !== "dev" ? parts[0] : undefined;
tenant = parts[0] !== "otb" ? parts[0] : undefined;
}
const request = {
protocol: "http",
Expand Down

0 comments on commit 8ea63ce

Please sign in to comment.