From 6c938e3d7bb205684d769b5ac3d5f564b192e746 Mon Sep 17 00:00:00 2001 From: Jared Palmer Date: Sun, 12 Mar 2017 11:38:01 -0400 Subject: [PATCH 1/2] Update now instructions to support html5 history Passing the `--single` flag ensure html5 history api support. --- packages/react-scripts/template/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-scripts/template/README.md b/packages/react-scripts/template/README.md index 933e9b0cdcb..38e14e89ff3 100644 --- a/packages/react-scripts/template/README.md +++ b/packages/react-scripts/template/README.md @@ -1520,7 +1520,7 @@ When you build the project, Create React App will place the `public` folder cont 3. Add this line to `scripts` in `package.json`: ``` - "now-start": "serve build/", + "now-start": "serve --single build/", ``` 4. Run `now` from your project directory. You will see a **now.sh** URL in your output like this: From 424e3cc93c80ca5a9e358785b947f93758fd354e Mon Sep 17 00:00:00 2001 From: Jared Palmer Date: Sun, 12 Mar 2017 11:47:17 -0400 Subject: [PATCH 2/2] serve --single /build ---> serve -s /build --- packages/react-scripts/template/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-scripts/template/README.md b/packages/react-scripts/template/README.md index 38e14e89ff3..59106327d32 100644 --- a/packages/react-scripts/template/README.md +++ b/packages/react-scripts/template/README.md @@ -1520,7 +1520,7 @@ When you build the project, Create React App will place the `public` folder cont 3. Add this line to `scripts` in `package.json`: ``` - "now-start": "serve --single build/", + "now-start": "serve -s build/", ``` 4. Run `now` from your project directory. You will see a **now.sh** URL in your output like this: