mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-02-12 02:39:17 +00:00
Refactor layout to use centralized analytics configuration
This commit is contained in:
parent
ec12789b15
commit
d59af116b9
@ -6,6 +6,7 @@ import "@/styles/globals.css";
|
|||||||
import { Inter } from "next/font/google";
|
import { Inter } from "next/font/google";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { NuqsAdapter } from "nuqs/adapters/next/app";
|
import { NuqsAdapter } from "nuqs/adapters/next/app";
|
||||||
|
import { analytics } from "@/config/siteConfig";
|
||||||
|
|
||||||
const inter = Inter({ subsets: ["latin"] });
|
const inter = Inter({ subsets: ["latin"] });
|
||||||
|
|
||||||
@ -60,8 +61,8 @@ export default function RootLayout({
|
|||||||
<head>
|
<head>
|
||||||
<script
|
<script
|
||||||
defer
|
defer
|
||||||
src={`https://${process.env.NEXT_PUBLIC_ANALYTICS_URL}/script.js`}
|
src={`https://${analytics.url}/script.js`}
|
||||||
data-website-id={process.env.NEXT_PUBLIC_ANALYTICS_TOKEN}
|
data-website-id={analytics.token}
|
||||||
></script>
|
></script>
|
||||||
<link rel="manifest" href="manifest.webmanifest" />
|
<link rel="manifest" href="manifest.webmanifest" />
|
||||||
<link rel="preconnect" href={process.env.NEXT_PUBLIC_POCKETBASE_URL} />
|
<link rel="preconnect" href={process.env.NEXT_PUBLIC_POCKETBASE_URL} />
|
||||||
|
Loading…
Reference in New Issue
Block a user