aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--front/default.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/front/default.nix b/front/default.nix
index 43eb919..6a0f087 100644
--- a/front/default.nix
+++ b/front/default.nix
@@ -40,6 +40,7 @@ in yarn2nix-moretea.mkYarnPackage (rec {
sha256 = "0wwgfrcrpimpxjhk073yxlkcp1p0bn0glxd9wisyq5kv8s7jw1yz";
} + "/front";
+
# NOTE: this is optional and generated dynamically if omitted
yarnNix = ./yarn.nix;
@@ -47,6 +48,15 @@ in yarn2nix-moretea.mkYarnPackage (rec {
dontStrip = true;
+
+ # can't currently change stun server as chaski.stuebinm.eu doesn't seem to work?
+# find . -name '*.ts' -exec sed -i "s/urls: 'stun:stun.l.google.com:19302'/url: 'chaski.stuebinm.eu:3478',credential:'chaski',username:'chaski'/g" {} +
+ patchPhase = ''
+ # remove google tag manager
+ find . -name '*.html' -exec sed -i "s/<script async src=\"https:\/\/www.googletagmanager.com\/gtag\/js?id=UA-10196481-11\"><\/script>/ /g" {} +
+ find src -name '*.ts' -exec sed -i "s/\/Floor0\/floor0.json/\/main.json/g" {} +
+ '';
+
buildPhase = ''
mkdir -p $out
ln -s ${workadventure-messages.outPath}/generated deps/${pname}/src/Messages/generated