a few fixes

This commit is contained in:
2025-07-30 13:36:00 +02:00
parent be72715cfe
commit d2985382f4
6 changed files with 39 additions and 321 deletions

6
app.ts
View File

@@ -4,8 +4,8 @@ import { Eta } from "jsr:@eta-dev/eta";
// Create Eta instance
const eta = new Eta({
views: join(Deno.cwd(), "src", "views"),
cache: Deno.env.get("DENO_ENV") === "production",
views: join(Deno.cwd(), "views"),
cache: Deno.env.get("SERVICE_DOMAIN") === "production",
});
// Create Oak application
@@ -14,7 +14,7 @@ const router = new Router();
// Serve static files
app.use(async (ctx: Context, next: Next) => {
const staticPath = join(Deno.cwd(), "src", "static");
const staticPath = join(Deno.cwd(), "static");
try {
// Strip /static prefix from path