Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/427: Serve explicit environments #433

Merged
merged 9 commits into from
May 23, 2022
Merged

Feat/427: Serve explicit environments #433

merged 9 commits into from
May 23, 2022

Conversation

notbot00
Copy link
Contributor

@notbot00 notbot00 commented May 19, 2022

Related issues 🔗

Closes #427

Description ℹ️

Added a new executor which proxies the @nrwl/web:dev-server. Now when we run the serve, we can pass in a custom env, which will make the executor load the relevant .env.{name} from the project root.
e.g.

yarn nx run token:serve --env=stagnet1

This will now pick up the env variables put in the .env.stagnet1 file and applies it to the app.

There's an open issue related to this here: nrwl/nx#7729

Technical

The current solution works only for apps using the @nrwl/web:dev-server. This excludes the trading app, as that one uses a nextjs executor.

@notbot00 notbot00 requested a review from a team as a code owner May 19, 2022 13:41
@netlify
Copy link

netlify bot commented May 19, 2022

🔮 Deploy Preview for vega-explorer canceled.

Name Link
🔨 Latest commit 123cf9c
🔍 Latest deploy log https://app.netlify.com/sites/vega-explorer/deploys/6287a399472d790008d4700a

@netlify
Copy link

netlify bot commented May 19, 2022

Deploy Preview for vega-trading-app ready!

Name Link
🔨 Latest commit 123cf9c
🔍 Latest deploy log https://app.netlify.com/sites/vega-trading-app/deploys/6287a399192ee000086102d3
😎 Deploy Preview https://deploy-preview-433--vega-trading-app.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented May 19, 2022

👷 Deploy Preview for vega-ui-toolkit processing.

Name Link
🔨 Latest commit 123cf9c
🔍 Latest deploy log https://app.netlify.com/sites/vega-ui-toolkit/deploys/6287a39990fbe6000925e95d

@netlify
Copy link

netlify bot commented May 19, 2022

Deploy Preview for token-dapp-dev ready!

Name Link
🔨 Latest commit 123cf9c
🔍 Latest deploy log https://app.netlify.com/sites/token-dapp-dev/deploys/6287a3997cab2b0009425c47
😎 Deploy Preview https://deploy-preview-433--token-dapp-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented May 19, 2022

Deploy Preview for simple-trading ready!

Name Link
🔨 Latest commit 123cf9c
🔍 Latest deploy log https://app.netlify.com/sites/simple-trading/deploys/6287a399de200c000abc62c5
😎 Deploy Preview https://deploy-preview-433--simple-trading.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@cypress
Copy link

cypress bot commented May 19, 2022



Test summary

1 0 0 0


Run details

Project frontend-monorepo
Status Passed
Commit 123cf9c
Started May 20, 2022 2:24 PM
Ended May 20, 2022 2:25 PM
Duration 01:14 💡
OS Linux Ubuntu - 20.04
Browser Chrome 101

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

apps/explorer/project.json Outdated Show resolved Hide resolved
@notbot00 notbot00 marked this pull request as draft May 19, 2022 17:21
@notbot00 notbot00 marked this pull request as ready for review May 20, 2022 10:08
@notbot00 notbot00 marked this pull request as draft May 20, 2022 14:00
@notbot00 notbot00 marked this pull request as ready for review May 20, 2022 14:22
@dexturr dexturr merged commit a6a21be into master May 23, 2022
@dexturr dexturr deleted the feat/427-serve-env branch May 23, 2022 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Env flag for the nx commands
4 participants