aboutsummaryrefslogtreecommitdiff
path: root/front
diff options
context:
space:
mode:
authorstuebinm2021-01-26 00:31:35 +0100
committerstuebinm2021-01-26 00:31:35 +0100
commit8899fcfbb665aba4a19513ea48ec16b27b705579 (patch)
tree64678e4227901ef47d68045f19ea6dc022eb1274 /front
parent51d69620e1543f8cf4ae093c4c0b15e228c58d14 (diff)
patches to remove googletagmanager and change default map
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