feat: add allowed_hosts support in local_backend (#3805)

This commit is contained in:
Erez Rokah
2020-05-26 11:50:09 +03:00
committed by GitHub
parent 8047d06afd
commit 624b7ff14b
5 changed files with 54 additions and 14 deletions

View File

@ -25,9 +25,11 @@ backend:
# when using the default proxy server port
local_backend: true
# when using a custom proxy server port
local_backend:
# when using a custom proxy server port
url: http://localhost:8082/api/v1
# when accessing the local site from a host other than 'localhost' or '127.0.0.1'
allowed_hosts: ['192.168.0.1']
```
4. Start your local development server (e.g. run `gatsby develop`).