We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3acc7bc commit 7ef75d5Copy full SHA for 7ef75d5
src/layouts/Base/Base.astro
@@ -5,6 +5,7 @@ interface Props {
5
}
6
7
const { title } = Astro.props;
8
+const isProduction = import.meta.env.ENVIRONMENT === "production";
9
---
10
11
<!doctype html>
@@ -24,6 +25,19 @@ const { title } = Astro.props;
24
25
rel="stylesheet"
26
href="https://cdn.jsdelivr.net/npm/@mdi/[email protected]/css/materialdesignicons.min.css"
27
/>
28
+ {
29
+ isProduction && (
30
+ <>
31
+ <noscript>
32
+ <img src="https://shynet-mpb4.onrender.com/ingress/cc9fac9d-2deb-4201-822e-3625f4530b8f/pixel.gif" />
33
+ </noscript>
34
+ <script
35
+ defer
36
+ src="https://shynet-mpb4.onrender.com/ingress/cc9fac9d-2deb-4201-822e-3625f4530b8f/script.js"
37
+ />
38
+ </>
39
+ )
40
+ }
41
</head>
42
<body>
43
<slot />
0 commit comments