A simple pastebin. This is a Next.js project bootstrapped with c3.
Demo: https://pb.981234.xyz/
# run dev
npm run dev
# run cloudflare preview (do it before deploy)
npm run preview
# deploy using wrangler
npm run deploy
# or auto deploy by integrate with github upon git pushOpen http://localhost:3000 with your browser to see the result.
Login to Cloudflare and create a KV, then replace the [[kv_namespaces]] in wrangler.toml.
Create a Turnstile.
- For site key, edit
app/consts.tsand replaceTURNSTILE_SITEKEY - For secret key, create a file named
.dev.varswithTURNSTILE_SECRETKEY="0xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx". Also add that environment variable in your 'Workers & Pages' settings in Cloudflare