umami only in prod

master
Niko 2 years ago
parent 2397e5bc6f
commit b45364c598
  1. 4
      src/layouts/MainLayout.astro

@ -148,9 +148,13 @@ const githubEditUrl = `${CONFIG.GITHUB_EDIT_URL}/${currentFile}`;
</aside> </aside>
</main> </main>
<Footer path={currentFile} /> <Footer path={currentFile} />
{
import.meta.env.MODE != "development" && (
<Umami <Umami
dataId="20626904-aeef-44b5-b016-2459fe244d80" dataId="20626904-aeef-44b5-b016-2459fe244d80"
site="https://log.nextgraph.org/umami.js" site="https://log.nextgraph.org/umami.js"
/> />
)
}
</body> </body>
</html> </html>

Loading…
Cancel
Save