fix: make it work with new vite

This commit is contained in:
Max Richter
2026-01-10 19:28:09 +01:00
parent 694feb083d
commit 8d712322c0
66 changed files with 590 additions and 1544 deletions

11
main.ts
View File

@@ -1,7 +1,8 @@
import { App, staticFiles } from "fresh";
import { type State } from "./utils.ts";
export const app = new App()
// Add static file serving middleware
.use(staticFiles())
// Enable file-system based routing
.fsRoutes();
export const app = new App<State>();
app.use(staticFiles());
app.fsRoutes();