1.0.0 • Published 7 months ago
@staticcms/proxy-server-lite v1.0.0
Static CMS Proxy Server
Static 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 @staticcms/proxy-serverfrom the root directory of the above repository. - Update your 
config.ymlto 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.
 
Custom Configuration
- Create a 
.envfile 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_PORT1.0.0
7 months ago