feat: remove MODE global (#2483)

This commit is contained in:
Marvin Hagemeister
2024-06-03 16:54:37 +02:00
committed by GitHub
parent aa19b393e7
commit e007597ff3
5 changed files with 60 additions and 61 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
import * as path from "@std/path";
import { MODE, type Mode } from "./runtime/server/mod.ts";
import type { Mode } from "./runtime/server/mod.ts";
export interface FreshPlugin {
name: string;
@@ -69,7 +69,7 @@ export function normalizeConfig(options: FreshConfig): ResolvedFreshConfig {
},
basePath: options.basePath ?? "",
staticDir: options.staticDir ?? path.join(root, "static"),
mode: MODE,
mode: "production",
};
}