diff --git a/src/config.ts b/src/config.ts index 8e6208c57ad..00680a3372e 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,5 +1,4 @@ import * as path from "@std/path"; -import type { Mode } from "./runtime/server/mod.ts"; export interface FreshConfig { root?: string; @@ -30,9 +29,9 @@ export interface ResolvedFreshConfig { basePath: string; staticDir: string; /** - * Tells you in which mode Fresh is currently running in. + * The mode Fresh can run in. */ - mode: Mode; + mode: "development" | "production"; } export function parseRootPath(root: string, cwd: string): string { diff --git a/src/mod.ts b/src/mod.ts index fd19c4b82bf..6116fcccd47 100644 --- a/src/mod.ts +++ b/src/mod.ts @@ -12,7 +12,6 @@ export { export type { RouteConfig } from "./types.ts"; export type { Middleware, MiddlewareFn } from "./middlewares/mod.ts"; export { staticFiles } from "./middlewares/static_files.ts"; -export type { Mode } from "./runtime/server/mod.ts"; export type { FreshConfig, ResolvedFreshConfig } from "./config.ts"; export type { FreshContext, Island, PageProps } from "./context.ts"; export { createDefine, type Define } from "./define.ts"; diff --git a/src/runtime/server/mod.ts b/src/runtime/server/mod.ts deleted file mode 100644 index 99a9ee035f3..00000000000 --- a/src/runtime/server/mod.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * The mode Fresh can run in. - */ -export type Mode = "development" | "production";