Skip to content

Commit 8fdd9bc

Browse files
committed
fix(account-modal): log iframe origin for debugging
- Updated the iframe origin to use process.env.NEXT_PUBLIC_AUTH_URL and added a console log for debugging purposes to track the iframe origin value.
1 parent 8550a03 commit 8fdd9bc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/app/src/components/custom-ui/account-modal.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ export function AccountModal({ isOpen, onClose }: AccountModalProps) {
2727
const [error, setError] = useState<string>("")
2828
const [isMobile, setIsMobile] = useState(false)
2929

30-
const iframeOrigin = env.NEXT_PUBLIC_AUTH_URL
30+
const iframeOrigin = process.env.NEXT_PUBLIC_AUTH_URL
31+
32+
console.log("iframeOrigin", iframeOrigin)
3133
const iframeUrl = useMemo(() => {
3234
const theme = isDark ? "dark" : "light"
3335
return `${iframeOrigin}?theme=${theme}`

0 commit comments

Comments
 (0)