Skip to content

Commit 48a9e1f

Browse files
committed
Add note about service worker usage netlify#2
1 parent ed3e6dd commit 48a9e1f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

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

3939
Local in-app requests to the relative path `/.netlify/functions/*` will automatically be proxied to the local functions dev server.
40+
41+
## Service Worker
42+
43+
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)