Skip to content

Commit

Permalink
Update server.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyBurger committed Dec 13, 2023
1 parent 50de995 commit 5159157
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/server/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ export const startServer = async () => {
"/about",
indexHtmlProduction({ stats: true, handleUsername: false }),
);

app.get(
"/dashboard",
indexHtmlProduction({ stats: false, handleUsername: false }),
);
app.get(
"/loading/:username",
indexHtmlProduction({ stats: false, handleUsername: false }),
Expand All @@ -127,9 +132,9 @@ export const startServer = async () => {
);
app.get(
"/:username/share",
indexHtmlProduction({ handleUsername: true, stats: true }),
indexHtmlProduction({ handleUsername: false, stats: true }),
);
app.get("*", indexHtmlProduction({ handleUsername: true, stats: true }));
app.get("*", indexHtmlProduction({ handleUsername: false, stats: true }));
}

const port = process.env.PORT || 8080;
Expand Down

0 comments on commit 5159157

Please sign in to comment.