Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
bf12c416
Commit
bf12c416
authored
8 years ago
by
Dan Abramov
Committed by
GitHub
8 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Reword comment
parent
12206832
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/start.js
+2
-1
scripts/start.js
with
2 additions
and
1 deletion
+2
-1
scripts/start.js
+
2
-
1
View file @
bf12c416
...
...
@@ -204,7 +204,8 @@ function addMiddleware(devServer) {
// Every unrecognized request will be forwarded to it.
var
proxy
=
require
(
paths
.
appPackageJson
).
proxy
;
devServer
.
use
(
historyApiFallback
({
// Allow paths with dots in them to be loaded, reference issue #387
// Paths with dots should still use the history fallback.
// See https://github.com/facebookincubator/create-react-app/issues/387.
disableDotRule
:
true
,
// For single page apps, we generally want to fallback to /index.html.
// However we also want to respect `proxy` for API calls.
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment