ui(frontend-admin): 💄 Update AnalyticsRedirectPage to enhance analytics tracking and admin navigation flow with improved routing and UI components
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
2399c396fe
commit
b16743eb53
1 changed files with 3 additions and 1 deletions
|
|
@ -8,8 +8,10 @@
|
|||
import { useEffect, useState } from 'react';
|
||||
import styled from '@lilith/ui-styled-components';
|
||||
|
||||
declare const __ANALYTICS_URL__: string;
|
||||
|
||||
const ANALYTICS_URL =
|
||||
import.meta.env.VITE_ANALYTICS_URL ||
|
||||
__ANALYTICS_URL__ ||
|
||||
(() => {
|
||||
const { protocol, hostname, port } = window.location;
|
||||
const analyticsHost = hostname.replace(/^admin\./, 'analytics.');
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue