Skip to content

After building , navigating to "app1" gives 404 #72

@ajaykumarsana

Description

@ajaykumarsana

Hi @joeldenning @Vallerious ,

  • cd navbar && npm ci && npm run build:single-spa
  • cd ../app1 && npm ci && npm run build:single-spa
  • cd ../app2 && npm ci && npm run build:single-spa
  • cd .. && mkdir static && cp -a navbar/dist app1/dist app2/dist static
  • cp root-html-file/index.html static
  • sed -i 's/http://localhost:4201/main//dist/app1/main/g' static/index.html
  • sed -i 's/http://localhost:4202/main//dist/app2/main/g' static/index.html
  • sed -i 's/http://localhost:4300/main//dist/navbar/main/g' static/index.html
  • cp static/index.html static/200.html
  • echo "The static directory uploaded to surge:"
  • find static

i tried to build by using above steps, i've got my static folder ready, When i put static folder inside apache or other server, I was able to load initial page properly.
The issue is when i navigate to '/app1' or '/app2' 'm getting 404 error.

Can you please help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions