Skip to content

Commit 2b5e177

Browse files
committed
docs: push context editor public dir changes
1 parent 0f153e6 commit 2b5e177

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

examples/context-editor/README.md

+19
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,25 @@ npm run build
6262

6363
The built files will be available in the `build` directory.
6464

65+
## Deploying to Cloudflare Pages
66+
67+
The Codebase Context Editor can be easily deployed to Cloudflare Pages. Follow these steps:
68+
69+
1. Fork the repository or push your changes to your GitHub account.
70+
71+
2. Log in to your Cloudflare account and go to the Pages section.
72+
73+
3. Click on "Create a project" and select your repository.
74+
75+
4. Configure your build settings:
76+
- Build command: `npm run build`
77+
- Build output directory: `build`
78+
- Root directory: `examples/context-editor`
79+
80+
5. Click on "Save and Deploy".
81+
82+
Cloudflare Pages will automatically deploy your site and provide you with a URL. It will also automatically redeploy when you push changes to your repository.
83+
6584
## Usage
6685

6786
1. Open the application in your web browser.
+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/*
2+
X-Frame-Options: DENY
3+
X-XSS-Protection: 1; mode=block
4+
X-Content-Type-Options: nosniff
5+
Referrer-Policy: strict-origin-when-cross-origin
6+
Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self' data:;
7+
Permissions-Policy: camera=(), microphone=(), geolocation=()
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* /index.html 200

0 commit comments

Comments
 (0)