Skip to content

Commit

Permalink
Fikser client wildcards
Browse files Browse the repository at this point in the history
  • Loading branch information
anders-nom committed Jul 1, 2024
1 parent 5222024 commit e9cfda6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,12 @@ app.get("/env", async ({ req, json }) => {
//TODO: Add css?
});
});
app.get("/client*.js", async ({ redirect }) =>
app.get("/:clientWithId{client(.*).js}", async ({ redirect }) =>
redirect(csrAssets.csrScriptUrl),
);
app.get("/css/client*.css", async ({ redirect }) => redirect(csrAssets.cssUrl));
app.get("/css/:clientWithId{client(.*).css}", async ({ redirect }) =>
redirect(csrAssets.cssUrl),
);
app.get("/", async ({ req, html }) => {
const data = validParams(req.query());

Expand Down

0 comments on commit e9cfda6

Please sign in to comment.