You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -146,20 +146,21 @@ The default `static.json`, if it does not exist in the repo, is:
146
146
147
147
###Routing clean URLs
148
148
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`.
150
150
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):
152
152
153
153
```json
154
154
{
155
155
"root":"build/",
156
-
"clean_urls":false,
157
156
"routes": {
158
157
"/**":"index.html"
159
158
}
160
159
}
161
160
```
162
161
162
+
👓 See[custom routing w/ the static buildpack](https://github.com/heroku/heroku-buildpack-static#custom-routes).
163
+
163
164
###HTTPS-only
164
165
165
166
Enforce secure connections by automatically redirecting insecure requests to**https://**, in`static.json`: