Skip to content

ichuan/pastebin

Repository files navigation

Pastebin

A simple pastebin. This is a Next.js project bootstrapped with c3.

Demo: https://pb.981234.xyz/

Getting Started

# 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 push

Open http://localhost:3000 with your browser to see the result.

Cloudflare integration

KV

Login to Cloudflare and create a KV, then replace the [[kv_namespaces]] in wrangler.toml.

Captcha (Turnstile)

Create a Turnstile.

  1. For site key, edit app/consts.ts and replace TURNSTILE_SITEKEY
  2. For secret key, create a file named .dev.vars with TURNSTILE_SECRETKEY="0xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx". Also add that environment variable in your 'Workers & Pages' settings in Cloudflare

About

A simple patebin built with Nextjs and deployed on Cloudflare

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published