Skip to content

Commit 1e16891

Browse files
fix: remove unused app.config.staticDir
1 parent 67ddbdf commit 1e16891

3 files changed

Lines changed: 2 additions & 12 deletions

File tree

src/config.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,6 @@ export interface FreshConfig {
77
* @default undefined
88
*/
99
basePath?: string;
10-
/**
11-
* The directory to serve static files from.
12-
*
13-
* This can be an absolute path, a file URL or a relative path.
14-
* Relative paths are resolved against the `root` option.
15-
* @default "static"
16-
*/
17-
staticDir?: string;
1810
}
1911

2012
/**

src/dev/builder_test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,7 @@ Deno.test({
213213
outDir: path.join(tmp, "dist"),
214214
staticDir: tmp,
215215
});
216-
const app = new App({
217-
staticDir: tmp,
218-
});
216+
const app = new App();
219217
const abort = new AbortController();
220218
const port = 8011;
221219
await builder.listen(() => Promise.resolve(app), {

tests/fixture_precompile/valid/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { App } from "../../../src/app.ts";
22

3-
const app = new App({ staticDir: "./static" }).get(
3+
const app = new App().get(
44
"/",
55
(ctx) =>
66
ctx.render(

0 commit comments

Comments
 (0)