Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 0b6a348

Browse files
committed
Fix revive function
1 parent 0908aad commit 0b6a348

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

commands/start.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ if (import.meta.main) {
4646

4747
// close the app modules server
4848
ac.abort();
49+
Deno.env.delete("ALEPH_MODULES_PROXY_PORT");
4950

5051
const config: AlephConfig | undefined = Reflect.get(globalThis, "__ALEPH_CONFIG");
5152
const outputDir = config?.build?.outputDir ?? "dist";

server/routing.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const revivedModules: Map<string, Record<string, unknown>> = new Map();
1212

1313
/** revive a route module. */
1414
export function revive(filename: string, module: Record<string, unknown>) {
15-
if (Deno.env.get("ALEPH_ENV") === "production") {
15+
if (Deno.env.get("ALEPH_ENV") !== "development") {
1616
revivedModules.set(filename, module);
1717
}
1818
}

0 commit comments

Comments
 (0)