From 113945c53a75ddc7b52990d3f1a95f953ab205d7 Mon Sep 17 00:00:00 2001 From: Ritesh Ghosh Date: Mon, 26 May 2025 00:03:58 +0530 Subject: [PATCH] refactor: un-feature-gate static content hosting depending on deployment env --- src/server.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/server.ts b/src/server.ts index 8ff1e03..efafb72 100644 --- a/src/server.ts +++ b/src/server.ts @@ -41,9 +41,9 @@ if (isPersonalDeployment) { app.use(ratelimit); } -if (env.ANIWATCH_API_DEPLOYMENT_ENV === DeploymentEnv.NODEJS) { - app.use("/", serveStatic({ root: "public" })); -} +// if (env.ANIWATCH_API_DEPLOYMENT_ENV === DeploymentEnv.NODEJS) { +app.use("/", serveStatic({ root: "public" })); +// } app.get("/health", (c) => c.text("daijoubu", { status: 200 })); app.get("/v", async (c) =>