a few fixes
This commit is contained in:
6
app.ts
6
app.ts
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user