Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ COPY ./packages/client/ ./
WORKDIR /app
RUN yarn install

#ENVS FOR PROD FRONTEND
ENV APP_ENV "production"
ENV NODE_ENV "production"
ENV REACT_APP_FRONTEND_URL "cast.fyi"
ENV NODE_ENV "production"
Copy link
Copy Markdown
Contributor Author

@germanurrus germanurrus Jul 20, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

duplicated from line 13

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On it!

ENV REACT_APP_BACK_END_SERVER_API "https://api.cast.fyi"
ENV REACT_APP_IPFS_GATEWAY "https://gateway.pinata.cloud/ipfs/"
ENV REACT_APP_FLOW_ENV "mainnet"
Expand Down
7 changes: 4 additions & 3 deletions frontend/Dockerfile.stage
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ COPY ./packages/client/ ./
WORKDIR /app
RUN yarn install

#ENVS FOR DEVELOP FRONTEND
#ENVS FOR STAGING FRONTEND
ENV APP_ENV "production"
ENV NODE_ENV "production"
ENV REACT_APP_FRONTEND_URL "fe.staging.cast.dapperlabs.com"
ENV REACT_APP_BACK_END_SERVER_API "https://app.staging.cast.dapperlabs.com"
ENV REACT_APP_IPFS_GATEWAY "https://gateway.pinata.cloud/ipfs/"
ENV REACT_APP_FLOW_ENV "testnet"
ENV NODE_ENV "production"
ENV REACT_APP_TX_OPTIONS_ADDRS "0xe0de919ed4ebeee4,0x7f81b82fa0e59b17"
ENV REACT_APP_FRONTEND_URL "fe.staging.cast.dapperlabs.com"

RUN yarn build

Expand Down
6 changes: 3 additions & 3 deletions frontend/packages/client/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.

Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
Expand All @@ -29,8 +29,8 @@
<script
defer
data-api="/api/event"
data-domain="fe.staging.cast.dapperlabs.com"
src="https://fe.staging.cast.dapperlabs.com/js/script.js"
data-domain="%REACT_APP_FRONTEND_URL%"
src="/js/script.js"
></script>
<script>
window.plausible =
Expand Down