···99# defaults to did:web:localhost
1010SERVICE_DID="did:web:localhost"
11111212+# constellation instance. provide the full url.
1313+# defaults to the public microcosm.blue constellation instance.
1414+CONSTELLATION_URL="https://constellation.microcosm.blue/"
1515+1216# required.
1317# owner did
1418# used to verify ownership of this lattice and its related channels
+16
src/lib/env.ts
···2929}
3030export const SERVICE_DID = serviceDidParsed ?? "did:web:localhost";
31313232+3333+const constellationUrl = process.env.CONSTELLATION_URL;
3434+let constellationUrlParsed: URL | undefined;
3535+try {
3636+ constellationUrlParsed = new URL(constellationUrl ?? "");
3737+} catch (err) {
3838+3939+4040+ console.warn(
4141+ "Invalid CONSTELLATION_URL. Please ensure that the environment variable is a valid URL.",
4242+ );
4343+console.warn("Falling back to default constellation instance.");
4444+ console.warn(err);
4545+}
4646+export const CONSTELLATION_URL = constellationUrlParsed ?? new URL("https://constellation.microcosm.blue/");
4747+3248const ownerDid = process.env.OWNER_DID;
3349const {
3450 success: ownerDidParseSuccess,