1
0
mirror of https://github.com/alexandrev/xslt-lab.git synced 2026-09-18 19:43:16 +00:00

feat(frontend): load config from runtime env

This commit is contained in:
2025-07-04 13:10:52 +02:00
parent 7093577cb7
commit f880968ab0
6 changed files with 46 additions and 20 deletions
+12 -5
View File
@@ -21,11 +21,18 @@
<meta property="og:url" content="https://xsltplayground.com/" />
<meta property="og:image" content="/logo.svg" />
<link rel="canonical" href="https://xsltplayground.com/" />
<script
async
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=%VITE_ADSENSE_CLIENT%"
crossorigin="anonymous"
></script>
<script type="module" src="/env.js"></script>
<script>
if (window.env && window.env.VITE_ADSENSE_CLIENT) {
const s = document.createElement('script');
s.async = true;
s.src =
'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=' +
window.env.VITE_ADSENSE_CLIENT;
s.crossOrigin = 'anonymous';
document.head.appendChild(s);
}
</script>
</head>
<body>
<div id="root"></div>