Skip to content

PavelPolyakov/CRA-PUBLIC_URL-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository is a demo of possible development setup, where one wants to develop CRA under the gateway.

In the current setup SPA should be served under: /auth, while the API is served under /auth/api*.

This does not work:

# terminal 1
cd cra-app
npm start
# terminal 2
cd api-app
npm start
# terminal 3
cd gateway
npm start

# open localhost:4000/auth

does not work

This does work

# terminal 1
cd cra-app
npm run build
cd ./build
npx serve . -p 4100
# terminal 2
cd api-app
npm start
# terminal 3
cd gateway
npm start

# open localhost:4000/auth

works

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published