746e5956bc
- netlify-cms-app@2.11.14 - netlify-cms-backend-bitbucket@2.8.1 - netlify-cms-backend-github@2.6.6 - netlify-cms-backend-gitlab@2.5.3 - netlify-cms-backend-proxy@1.0.3 - netlify-cms-backend-test@2.7.2 - netlify-cms-core@2.17.0 - netlify-cms-locales@1.9.0 - netlify-cms-proxy-server@1.0.7 - netlify-cms-widget-file@2.5.3 - netlify-cms-widget-markdown@2.8.4 - netlify-cms-widget-select@2.5.1 - netlify-cms@2.10.17
Netlify CMS Proxy Server
Netlify CMS Proxy Server is an express server created to facilitate local development.
How It Works
- Navigate to a local Git repository configured with the CMS.
- Run
npx netlify-cms-proxy-server
from the root directory of the above repository. - Update your
config.yml
to connect to the server:
backend:
name: proxy
proxy_url: http://localhost:8081/api/v1
branch: master # optional, defaults to master
- Start you local development server (e.g. run
gatsby develop
).
Custom Configuration
- Create a
.env
file in the root directory of your local Git repository. - Update the file as follows:
# optional, defaults to current directory
GIT_REPO_DIRECTORY=FULL_PATH_TO_LOCAL_GIT_REPO
# optional, defaults to 8081
PORT=CUSTOM_PORT