Skip to content

Commit

Permalink
update to namespace check
Browse files Browse the repository at this point in the history
  • Loading branch information
thetif committed Jan 7, 2025
1 parent 5b9bdd2 commit a1eadb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/libs/sink-lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ export function getDomainAndNamespace<T extends BaseIndex>(

export function getDomainAndNamespace(baseIndex?: BaseIndex) {
const domain = process.env.osDomain;
const indexNamespace = process.env.indexNamespace;
const indexNamespace = process.env.indexNamespace ?? "";

if (domain === undefined) {
throw new Error("osDomain is undefined in environment variables");
}

if (indexNamespace === undefined) {
if (indexNamespace == "" && process.env.isDev == "true") {
throw new Error("indexName is undefined in environment variables");
}

Expand Down

0 comments on commit a1eadb3

Please sign in to comment.