fix: make it work with new vite
This commit is contained in:
11
main.ts
11
main.ts
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user