File tree 4 files changed +4
-10
lines changed
4 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -14,13 +14,13 @@ jobs:
14
14
run : |
15
15
echo "${{ secrets.GHCR_TOKEN }}" | docker login ghcr.io -u "${{ secrets.GHCR_USER }}" --password-stdin
16
16
docker build -f Dockerfile.production . --tag ghcr.io/${{ github.repository }}:${GITHUB_REF#refs/tags/} \
17
- --build-arg BUGSNAG_KEY="${{ secrets.BUGSNAG_KEY }}" --build-arg MAINNET_DOMAIN="restake.app" --build-arg TESTNET_DOMAIN="testnet.restake.app" --build-arg EMBED_ANALYTICS="1"
17
+ --build-arg BUGSNAG_KEY="${{ secrets.BUGSNAG_KEY }}" --build-arg MAINNET_DOMAIN="restake.app" --build-arg TESTNET_DOMAIN="testnet.restake.app"
18
18
docker tag ghcr.io/${{ github.repository }}:${GITHUB_REF#refs/tags/} ghcr.io/${{ github.repository }}:latest
19
19
docker push ghcr.io/${{ github.repository }}:${GITHUB_REF#refs/tags/}
20
20
docker push ghcr.io/${{ github.repository }}:latest
21
21
22
22
docker build -f Dockerfile.production . --tag ghcr.io/${{ github.repository }}:${GITHUB_REF#refs/tags/}-testnet \
23
- --build-arg BUGSNAG_KEY="${{ secrets.BUGSNAG_KEY }}" --build-arg MAINNET_DOMAIN="restake.app" --build-arg TESTNET_DOMAIN="testnet.restake.app" --build-arg TESTNET_MODE="1" --build-arg EMBED_ANALYTICS="1"
23
+ --build-arg BUGSNAG_KEY="${{ secrets.BUGSNAG_KEY }}" --build-arg MAINNET_DOMAIN="restake.app" --build-arg TESTNET_DOMAIN="testnet.restake.app" --build-arg TESTNET_MODE="1"
24
24
docker tag ghcr.io/${{ github.repository }}:${GITHUB_REF#refs/tags/}-testnet ghcr.io/${{ github.repository }}:latest-testnet
25
25
docker push ghcr.io/${{ github.repository }}:${GITHUB_REF#refs/tags/}-testnet
26
26
docker push ghcr.io/${{ github.repository }}:latest-testnet
Original file line number Diff line number Diff line change @@ -22,8 +22,6 @@ ARG MAINNET_DOMAIN
22
22
ENV MAINNET_DOMAIN=${MAINNET_DOMAIN}
23
23
ARG TESTNET_DOMAIN
24
24
ENV TESTNET_DOMAIN=${TESTNET_DOMAIN}
25
- ARG EMBED_ANALYTICS
26
- ENV EMBED_ANALYTICS=${EMBED_ANALYTICS}
27
25
28
26
RUN npm run build
29
27
Original file line number Diff line number Diff line change 18
18
< body >
19
19
< noscript > You need to enable JavaScript to run this app.</ noscript >
20
20
< div id ="root "> </ div >
21
+ < script async defer src ="https://sa.restake.app/latest.js "> </ script >
22
+ < noscript > < img src ="https://sa.restake.app/noscript.gif " alt ="" referrerpolicy ="no-referrer-when-downgrade " /> </ noscript >
21
23
</ body >
22
24
</ html >
Original file line number Diff line number Diff line change @@ -27,12 +27,6 @@ const app = (
27
27
< Route path = "/:network/:validator/:section" element = { < NetworkFinder /> } />
28
28
</ Routes >
29
29
</ BrowserRouter >
30
- { process . env . EMBED_ANALYTICS === '1' && (
31
- < >
32
- < script async defer src = "https://sa.restake.app/latest.js" > </ script >
33
- < noscript > < img src = "https://sa.restake.app/noscript.gif" alt = "" referrerpolicy = "no-referrer-when-downgrade" /> </ noscript >
34
- </ >
35
- ) }
36
30
</ React . StrictMode >
37
31
)
38
32
You can’t perform that action at this time.
0 commit comments