Skip to content

Setup Cloudflare Pages with Functions - #39

Merged
ccocoa merged 1 commit into
mainfrom
feat-cloudflare-pages-setup
Jun 28, 2026
Merged

Setup Cloudflare Pages with Functions#39
ccocoa merged 1 commit into
mainfrom
feat-cloudflare-pages-setup

Conversation

@ccocoa

@ccocoa ccocoa commented Jun 28, 2026

Copy link
Copy Markdown
Owner

This PR sets up Cloudflare Pages with Functions for server-side flag validation.

  • Added functions/api/verify.js
  • Added GitHub Actions workflow for deployment.
  • Updated src/scripts/main.js to call the new API endpoint.

Kokoa Dev Agent Report
Original Instruction:
Setup Cloudflare Pages dengan Functions:

  1. Buat direktori 'functions/api' dan file 'functions/api/verify.js' (logika validasi flag sederhana sebagai dasar).
  2. Buat file '.github/workflows/cloudflare-pages.yml' untuk build dan deploy ke Cloudflare Pages.
  3. Update 'src/scripts/main.js' agar fungsi validasi flag memanggil endpoint '/api/verify' alih-alih mengecek localStorage.
  4. Pastikan semua file tercommit dan buatkan PR.

- Added `functions/api/verify.js` for server-side flag validation.
- Added `.github/workflows/cloudflare-pages.yml` for CI/CD.
- Updated `src/scripts/main.js` to use the new API endpoint instead of localStorage.

Co-authored-by: thirapi <132630759+thirapi@users.noreply.github.com>
@ccocoa
ccocoa merged commit 01435d3 into main Jun 28, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant