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

Commit 63882e9

Browse files
committed
Improve getAlephPkgUri function
1 parent e5f1eaf commit 63882e9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

server/config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ export type JSXConfig = {
1717

1818
export function getAlephPkgUri() {
1919
return globalIt("__ALEPH_PKG_URI", () => {
20+
const uriFromEnv = Deno.env.get("ALEPH_PKG_URI");
21+
if (uriFromEnv) {
22+
return uriFromEnv;
23+
}
2024
const DEV_PORT = Deno.env.get("ALEPH_DEV_PORT");
2125
if (DEV_PORT) {
2226
return `http://localhost:${DEV_PORT}`;

0 commit comments

Comments
 (0)