This server is designed to handle sites built with BrowserRouter.
- Build your React project
react-scripts buildand copy it to/web/ - Test on localhost
- Run
dev_appserver.py app.yamlin the same directory as theapp.yamlfile - Open browser and navigate to http://localhost:8080
- Run
- Deploy to Google App Engine
- Run
gcloud app deployin the same directory as theapp.yamlfile
- Run
During your react build, any folder in /public/ will create it's own static directory. These folders need
to be added to the staticPaths array.
- Open
main.goin a text editor - Add elements to the
staticPathsstring array
Example
staticPaths := [...]string{"/static/", "/img/", "/media/"}