Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6b725c3

Browse files
authored
Update routing for React Router v4 (closesmars#45)
1 parent00ef75f commit6b725c3

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)

[8]ページ先頭

©2009-2025 Movatter.jp