Skip to content
This repository was archived by the owner on Jun 11, 2022. It is now read-only.

Commit 6b725c3

Browse files
authored
Update routing for React Router v4 (closes #45)
1 parent 00ef75f commit 6b725c3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,20 +146,21 @@ The default `static.json`, if it does not exist in the repo, is:
146146

147147
### Routing clean URLs
148148

149-
By default, [React Router](https://github.com/reactjs/react-router) (not included) uses hash-based URLs like `https://example.com/index.html#/users/me/edit`. This is nice & easy when getting started with local development, but for a public app you probably want real URLs like `https://example.com/users/me/edit`.
149+
By default, [React Router](https://github.com/ReactTraining/react-router) (not included) uses hash-based URLs like `https://example.com/index.html#/users/me/edit`. This is nice & easy when getting started with local development, but for a public app you probably want real URLs like `https://example.com/users/me/edit`.
150150

151-
Create a `static.json` file to configure the web server for clean [`browserHistory` URLs with React Router](https://github.com/reactjs/react-router/blob/master/docs/guides/Histories.md#browserhistory):
151+
Create a `static.json` file to configure the web server for clean [`browserHistory` URLs with React Router](https://github.com/ReactTraining/react-router/blob/v3/docs/guides/Histories.md#browserhistory):
152152

153153
```json
154154
{
155155
"root": "build/",
156-
"clean_urls": false,
157156
"routes": {
158157
"/**": "index.html"
159158
}
160159
}
161160
```
162161

162+
👓 See [custom routing w/ the static buildpack](https://github.com/heroku/heroku-buildpack-static#custom-routes).
163+
163164
### HTTPS-only
164165

165166
Enforce secure connections by automatically redirecting insecure requests to **https://**, in `static.json`:

0 commit comments

Comments
 (0)