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

Commit a936148

Browse files
committed
Use ALEPH_PKG_URI env to deploy examples
1 parent e24788b commit a936148

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export async function loadImportMap(): Promise<ImportMap> {
124124
const importMap: ImportMap = { __filename: "", imports: {}, scopes: {} };
125125

126126
if (Deno.env.get("ALEPH_DEV")) {
127-
const alephPkgUri = `http://localhost:${Deno.env.get("ALEPH_DEV_PORT")}`;
127+
const alephPkgUri = Deno.env.get("ALEPH_PKG_URI") || `http://localhost:${Deno.env.get("ALEPH_DEV_PORT")}`;
128128
const importMapFile = join(Deno.env.get("ALEPH_DEV_ROOT")!, "import_map.json");
129129
const { __filename, imports, scopes } = await readImportMap(importMapFile);
130130
Object.assign(importMap, {

0 commit comments

Comments
 (0)