mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-04-10 12:49:29 +02:00
Remove ackee
This commit is contained in:
parent
537150f3c3
commit
c3bcfe4d48
5
.changeset/many-poets-exist.md
Normal file
5
.changeset/many-poets-exist.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"nostrudel": minor
|
||||
---
|
||||
|
||||
Remove ackee
|
@ -23,8 +23,6 @@
|
||||
<script>
|
||||
window.CACHE_RELAY_ENABLED = false;
|
||||
</script>
|
||||
|
||||
%VITE_ANALYTICS_SCRIPT%
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
|
@ -2,18 +2,6 @@ import { defineConfig } from "vite";
|
||||
import react from "@vitejs/plugin-react";
|
||||
import { VitePWA } from "vite-plugin-pwa";
|
||||
|
||||
const isProd = process.env.NODE_ENV === "production";
|
||||
process.env.VITE_ANALYTICS_SCRIPT =
|
||||
isProd && process.env.ACKEE_DOMAIN_ID
|
||||
? `
|
||||
<script
|
||||
async defer
|
||||
src="//ackee.nostrudel.ninja/tracker.js"
|
||||
data-ackee-server="//ackee.nostrudel.ninja"
|
||||
data-ackee-domain-id="${process.env.ACKEE_DOMAIN_ID}"
|
||||
></script>`
|
||||
: "";
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
base: process.env.VITE_BASE ?? "/",
|
||||
|
Loading…
x
Reference in New Issue
Block a user