Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Support window.location.origin if BASE_URL is not set #6

Merged
merged 1 commit into from
Nov 17, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/citadel.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Citadel } from "@runcitadel/sdk/browser/index.browser.js";

const citadel = new Citadel(process.env.BASE_URL);
const citadel = new Citadel(process.env.BASE_URL || window.location.origin);

export default citadel;