We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 599973b commit 9f99d83Copy full SHA for 9f99d83
init/src/init.ts
@@ -360,10 +360,12 @@ ${GRADIENT_CSS}`;
360
// Skip this and be silent if there is a network issue.
361
}
362
363
- const MAIN_TS = `import { App, fsRoutes } from "fresh";
+ const MAIN_TS = `import { App, fsRoutes, staticFiles } from "fresh";
364
import { define, type State } from "./utils.ts";
365
366
-export const app = new App<State>();
+export const app = new App<State>()
367
+
368
+app.use(staticFiles());
369
370
// this is the same as the /api/:name route defined via a file. feel free to delete this!
371
app.get("/api2/:name", (ctx) => {
0 commit comments