Package Exports
- netlify-cms-proxy-server
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (netlify-cms-proxy-server) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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