Skip to content

Commit f0e94f1

Browse files
authored
Merge pull request #9 from lgraubner/master
Add note about service worker usage #2
2 parents 0633850 + 48a9e1f commit f0e94f1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: README.md

+4
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,7 @@ yarn start:app
4949
This will start the normal create-react-app dev server and open your app at `http://localhost:3000`.
5050

5151
Local in-app requests to the relative path `/.netlify/functions/*` will automatically be proxied to the local functions dev server.
52+
53+
## Service Worker
54+
55+
The service worker does not work with lambda functions out of the box. It prevents calling the function and returns the app itself instead ([Read more](https://github.com/facebook/create-react-app/issues/2237#issuecomment-302693219)). To solve this you have to eject and enhance the service worker configuration in the webpack config. Whitelist the path of your lambda function and you are good to go.

0 commit comments

Comments
 (0)