SvelteKit + Tailwind portfolio site, styled with manga-inspired aesthetic described in the project brief. This repo is configured to deploy on Cloudflare Pages.
- Node 20+
- npm 10+
- Cloudflare account with Pages enabled
wranglerCLI (already included indevDependencies)
npm install
npm run dev
# or open the browser automatically
npm run dev -- --opennpm run checknpm run build
npm run preview # serve the built app locally-
Build the Cloudflare bundle
npm run build
-
Preview with Cloudflare’s emulator
npm run cf:dev
-
Deploy
- Preview branch (optional):
npm run cf:preview
- Production:
npm run cf:deploy
- Preview branch (optional):
All Cloudflare commands rely on the generated .svelte-kit/cloudflare bundle from @sveltejs/adapter-cloudflare. Set the CF_ACCOUNT_ID and CF_API_TOKEN environment variables or run wrangler login before deploying.
- Create a new Pages project and connect this Git repository.
- Build command:
npm run build. - Deploy command:
npx wrangler pages deploy .svelte-kit/cloudflare --project-name=portfolio.
Once the build succeeds, Cloudflare will expose preview and production URLs automatically. Use the provided scripts for manual deploys or rely on the Pages Git integration for CI-driven deployments.