Skip to content

Commit

Permalink
feat: allow override iframe url
Browse files Browse the repository at this point in the history
  • Loading branch information
gllm-dev committed Mar 19, 2024
1 parent db51941 commit 60ae0bc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openfort/openfort-js",
"version": "0.5.18",
"version": "0.5.19",
"description": "",
"author": "Openfort",
"repository": {
Expand Down
3 changes: 2 additions & 1 deletion src/clients/iframe-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ export class IframeClient {
if (!document) {
throw new Error("must be run in a browser");
}
const baseURL = process.env.IFRAME_URL || "https://iframe.openfort.xyz";

const baseURL = process.env.IFRAME_URL || process.env.NEXT_PUBLIC_IFRAME_URL || "https://iframe.openfort.xyz";

const actualIframeURL = document.getElementById("openfort-iframe") as HTMLIFrameElement;
if (actualIframeURL) {
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const VERSION = "0.5.18";
export const VERSION = "0.5.19";
export const PACKAGE = "@openfort/openfort-js";

0 comments on commit 60ae0bc

Please sign in to comment.