https://github.com/nichoth/template-cloudflare
Template for cloudflare pages projects
https://github.com/nichoth/template-cloudflare
cloudflare cloudflare-pages
Last synced: 3 months ago
JSON representation
Template for cloudflare pages projects
- Host: GitHub
- URL: https://github.com/nichoth/template-cloudflare
- Owner: nichoth
- Created: 2024-10-21T18:03:39.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-18T05:43:16.000Z (over 1 year ago)
- Last Synced: 2024-12-19T01:32:47.975Z (over 1 year ago)
- Topics: cloudflare, cloudflare-pages
- Language: TypeScript
- Homepage:
- Size: 2.03 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.example.md
Awesome Lists containing this project
README
# project name
Docs here
## staging
The staging branch is protected by HTTP basic auth. To set credentials, add
environment variables in the Cloudflare Pages dashboard scoped to the staging
branch (Settings → Environment variables):
| Variable | Required | Default | Description |
| ------------------- | -------- | ---------- | ------------------------- |
| `BASIC_AUTH_PASSWORD` | yes | — | Password for basic auth |
| `BASIC_AUTH_USER` | no | `staging` | Username for basic auth |
Leave these variables unset in production — auth is only enforced when
`BASIC_AUTH_PASSWORD` is present.
## develop
```
npm start
```