refactor: un-feature-gate static content hosting depending on deployment env
This commit is contained in:
+3
-3
@@ -41,9 +41,9 @@ if (isPersonalDeployment) {
|
|||||||
app.use(ratelimit);
|
app.use(ratelimit);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (env.ANIWATCH_API_DEPLOYMENT_ENV === DeploymentEnv.NODEJS) {
|
// if (env.ANIWATCH_API_DEPLOYMENT_ENV === DeploymentEnv.NODEJS) {
|
||||||
app.use("/", serveStatic({ root: "public" }));
|
app.use("/", serveStatic({ root: "public" }));
|
||||||
}
|
// }
|
||||||
|
|
||||||
app.get("/health", (c) => c.text("daijoubu", { status: 200 }));
|
app.get("/health", (c) => c.text("daijoubu", { status: 200 }));
|
||||||
app.get("/v", async (c) =>
|
app.get("/v", async (c) =>
|
||||||
|
|||||||
Reference in New Issue
Block a user