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 Jan 13, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -181,6 +181,8 @@ To customize an app's processes, commit a `Procfile` and deploy. Include `web: b
181
181
182
182
The web server may be [configured via the static buildpack](https://github.com/heroku/heroku-buildpack-static#configuration).
183
183
184
+
The config file `static.json` should be committed at the root of the repo. It will not be recognized, if this file in a sub-directory
185
+
184
186
The default `static.json`, if it does not exist in the repo, is:
185
187
186
188
```json
@@ -195,7 +197,7 @@ If a different web server `"root"` is specified, such as with a highly customize
195
197
196
198
[React Router](https://github.com/ReactTraining/react-router) (not included) may easily use 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`.
197
199
198
-
Create a `static.json` file to configure the web server for clean [`browserHistory` with React Router v3](https://github.com/ReactTraining/react-router/blob/v3/docs/guides/Histories.md#browserhistory) & [`BrowserRouter` with v4](https://reacttraining.com/react-router/web/api/BrowserRouter):
200
+
Create a `static.json` file at the root of the repo to configure the web server for clean [`browserHistory` with React Router v3](https://github.com/ReactTraining/react-router/blob/v3/docs/guides/Histories.md#browserhistory) & [`BrowserRouter` with v4](https://reacttraining.com/react-router/web/api/BrowserRouter):
0 commit comments