-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid building frontend for each environment and configure using env
- Loading branch information
Showing
15 changed files
with
220 additions
and
257 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Runtime configuration see comments in `nuxt.config.ts` for documentation. | ||
|
||
NUXT_PUBLIC_API_URL=https://api-ccdscan.mainnet.concordium.software/graphql | ||
NUXT_PUBLIC_WS_URL=wss://api-ccdscan.mainnet.concordium.software/graphql | ||
NUXT_PUBLIC_EXPLORER_NAME=Mainnet | ||
NUXT_PUBLIC_EXPLORER_EXTERNAL=Testnet@https://testnet.ccdscan.io | ||
|
||
# Dev features, always disable in production. | ||
NUXT_PUBLIC_ENABLE_URQL_DEVTOOLS=true | ||
NUXT_PUBLIC_ENABLE_BREAKPOINT_HINT=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Runtime configuration see comments in `nuxt.config.ts` for documentation. | ||
|
||
NUXT_PUBLIC_API_URL=https://api-ccdscan.stagenet.concordium.com/graphql | ||
NUXT_PUBLIC_WS_URL=wss://api-ccdscan.stagenet.concordium.com/graphql | ||
NUXT_PUBLIC_EXPLORER_NAME=Stagenet | ||
NUXT_PUBLIC_EXPLORER_EXTERNAL=Mainnet@https://ccdscan.io;Testnet@https://testnet.ccdscan.io | ||
|
||
# Dev features, always disable in production. | ||
NUXT_PUBLIC_ENABLE_URQL_DEVTOOLS=true | ||
NUXT_PUBLIC_ENABLE_BREAKPOINT_HINT=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Runtime configuration see comments in `nuxt.config.ts` for documentation. | ||
|
||
NUXT_PUBLIC_API_URL=https://api-ccdscan.testnet.concordium.com/graphql | ||
NUXT_PUBLIC_WS_URL=wss://api-ccdscan.testnet.concordium.com/graphql | ||
NUXT_PUBLIC_EXPLORER_NAME=Testnet | ||
NUXT_PUBLIC_EXPLORER_EXTERNAL=Mainnet@https://ccdscan.io | ||
|
||
# Dev features, always disable in production. | ||
NUXT_PUBLIC_ENABLE_URQL_DEVTOOLS=true | ||
NUXT_PUBLIC_ENABLE_BREAKPOINT_HINT=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,15 @@ | ||
ARG NODE_VERSION=18.12.1 | ||
ARG NODE_VERSION=18.18.2 | ||
|
||
FROM node:${NODE_VERSION} as build | ||
|
||
ARG ENVIRONMENT | ||
|
||
ENV ENVIRONMENT=$ENVIRONMENT | ||
|
||
WORKDIR /app | ||
|
||
COPY package.json yarn.lock ./ | ||
RUN yarn | ||
|
||
COPY . . | ||
RUN yarn build | ||
|
||
FROM node:${NODE_VERSION}-slim | ||
|
||
ENV PORT=3000 | ||
ENV HOST=0.0.0.0 | ||
|
||
EXPOSE 3000 | ||
|
||
COPY --from=build /app/.output . | ||
|
||
CMD ["node", "server/index.mjs"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.