We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d81e245 commit 015e319Copy full SHA for 015e319
src/server/index.tsx
@@ -5,6 +5,14 @@ import { renderToString } from "react-dom/server";
5
// This must be exported for the dev server to work
6
export const app = new Hono();
7
8
+app.use("*", async (ctx, next) => {
9
+ const url = new URL(ctx.req.url);
10
+ if (url.hostname === "coder.app") {
11
+ return ctx.redirect("https://coder.com");
12
+ }
13
+
14
+ await next();
15
+});
16
app.route("/api", api);
17
18
// Serves the main web application. This must come after the API route.
0 commit comments