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

Error when reloading this example app in "PROD" build/serve #10

Open
timothylombrana opened this issue Jan 10, 2023 · 0 comments
Open

Comments

@timothylombrana
Copy link

  1. I cloned this example repository and installed all dependencies.
  2. I added from the NX site recipe:
remotes: [
    ['shop', 'http://localhost:3000/shop'],
    ['cart', 'http://localhost:3000/cart'],
    ['about', 'http://localhost:3000/about'],
  ],

3: Ran the deploy command in recipe:

nx g @nrwl/workspace:run-commands \
deploy \
--project=host \
--command="rm -rf production && mkdir production && cp -r dist/apps/host/* production && cp -r dist/apps/{shop,cart,about} production && http-server -p 3000 -a localhost production"
  1. I clicked on any included links, reloaded the page, and got the following errors in the terminal.

Screen Shot 2023-01-10 at 3 40 40 PM

Is this still the right way of doing this? Could someone provide a new recipe?

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

No branches or pull requests

1 participant