Skip to content

Commit

Permalink
Merge pull request ubiquity#181 from barebind/fix/uncaught-typeerror-…
Browse files Browse the repository at this point in the history
…on-extrarpcs

fix: extraRpcs declaration error
  • Loading branch information
0x4007 authored Feb 28, 2024
2 parents 24284bd + c7e6459 commit 6f9d181
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions build/esbuild-build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const esBuildContext: esbuild.BuildOptions = {
".svg": "dataurl",
},
outdir: "static/out",
define: createEnvDefines(["SUPABASE_URL", "SUPABASE_ANON_KEY"], { allNetworkUrls }),
define: createEnvDefines(["SUPABASE_URL", "SUPABASE_ANON_KEY"], { extraRpcs: allNetworkUrls }),
};

esbuild
Expand Down Expand Up @@ -62,6 +62,5 @@ function createEnvDefines(envVarNames: string[], extras: Record<string, unknown>
defines[key] = JSON.stringify(extras[key]);
}
}
defines["extraRpcs"] = JSON.stringify(extraRpcs);
return defines;
}

0 comments on commit 6f9d181

Please sign in to comment.