Closed rueshyna closed 1 year ago
Currently, tzsafe.marigold.dev is running on ghostnet due to wrong env.
There are two bugs here.
In docker file, the arg in ARG will be wiped up after FROM so we couldn't make release image on mainnet.
ARG
FROM
> docker run --name tzsafe -p 20000:80 ghcr.io/marigold-dev/tzsafe:0.5.0-release > docker exec tzsafe cat /app/.env.local NEXT_PUBLIC_RPC_URL=https://ghostnet.tezos.marigold.dev/ NEXT_PUBLIC_API_URL=https://api.ghostnet.tzkt.io NEXT_PUBLIC_NETWORK_TYPE=ghostnet
according to the Next.js doc, the env variables have to be ready before npm run build.
npm run build
Note: In order to keep server-only secrets safe, environment variables are evaluated at build time
Currently, tzsafe.marigold.dev is running on ghostnet due to wrong env.
There are two bugs here.
In docker file, the arg in
ARG
will be wiped up afterFROM
so we couldn't make release image on mainnet.according to the Next.js doc, the env variables have to be ready before
npm run build
.