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
{{ message }}
This repository was archived by the owner on Jun 11, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -111,7 +111,7 @@ The default `static.json`, if it does not exist in the repo, is:
111
111
{ "root": "build/" }
112
112
```
113
113
114
-
####Routing clean URLs
114
+
### Routing clean URLs
115
115
116
116
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`.
117
117
@@ -127,7 +127,7 @@ Create a `static.json` file to configure the web server for clean [`browserHisto
127
127
}
128
128
```
129
129
130
-
####HTTPS-only
130
+
### HTTPS-only
131
131
132
132
Enforce secure connections by automatically redirecting insecure requests to **https://**, in `static.json`:
133
133
@@ -157,13 +157,13 @@ Prevent downgrade attacks with [HTTP strict transport security](https://develope
157
157
158
158
🤐 *Be careful not to export secrets. These values may be accessed by anyone who can see the React app.*
159
159
160
-
#####[Set vars on Heroku](https://devcenter.heroku.com/articles/config-vars)
160
+
### [Set vars on Heroku](https://devcenter.heroku.com/articles/config-vars)
161
161
162
162
```bash
163
163
heroku config:set REACT_APP_HELLO='I love sushi!'
164
164
```
165
165
166
-
#####Set vars for local dev
166
+
### Set vars for local dev
167
167
168
168
*Requires at least create-react-app 0.7. Earlier versions only support Compile-time.*
Two versions of variables are supported. In addition to compile-time variables applied during [build](https://github.com/facebookincubator/create-react-app#npm-run-build) the app supports variables set at runtime, applied as each web dyno starts-up.
180
180
@@ -189,7 +189,7 @@ ex: `REACT_APP_DEBUG_ASSERTIONS` ([prune code from bundle](https://webpack.githu
⚠️ *Avoid setting backslash escape sequences, such as `\n`, into Runtime config vars. Use literal UTF-8 values only; they will be automatically escaped.*
233
233
234
-
####Add-on config vars
234
+
### Add-on config vars
235
235
236
236
🤐 *Be careful not to export secrets. These values may be accessed by anyone who can see the React app.*
0 commit comments