Comments (2)
That comment is in server/index.js
, and it means that the Express route on the next line will handle all GET requests (that have not already been handled by an Express route above it) with the React app by sending index.html
to the browser. Whether or not the React app uses React Router for routing is up to you.
from heroku-cra-node.
@mars I see, thank you.
from heroku-cra-node.
Related Issues (20)
- git mv -k [!react-ui]* react-ui/ HOT 3
- Development deploying on cloud9 error HOT 1
- Receiving error due to heroku-postbuild script when deploying app HOT 4
- Action required: Greenkeeper could not be activated 🚨
- API call failed: fresh install HOT 2
- unable to find the index.html HOT 2
- Using with runtime envs? HOT 3
- Why are dev dependencies needed for the build process? HOT 2
- How to debug with vscode? HOT 3
- Could use a command to run locally HOT 3
- Heroku: Failed to load resource: the server responded with a status of 503 (Service Unavailable) /favicon.ico HOT 1
- JS_RUNTIME_TARGET_BUNDLE missing quotes HOT 1
- Express.js fetch error. Any API call returns react index.html HOT 2
- npm ERR! [email protected] start: `react-scripts start` HOT 7
- compression not working HOT 1
- Using cache for client node-modules HOT 1
- Failing to load images HOT 2
- Heroku Deployment (CRACO) HOT 1
- PERN stack app not compatible with buildpack HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from heroku-cra-node.