Skip to content
프로젝트

소개

컴퓨터 과학과 웹 개발을 다루는 인터랙티브 블로그 💡

웹 및 앱 개발

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
+1

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Not a Number

Interactive blog posts on computer science and web development, at nan.fyi.

Built with React Router (framework mode), MDX and Tailwind CSS, and deployed to Cloudflare Workers — the same stack as the nan repo.

pnpm install
pnpm dev

Layout

  • app/routes.ts lists every route. Pages live under app/routes/, each with a route.tsx (meta + layout) and usually a page.mdx (the post).
  • app/mdx-components.tsx maps the components every MDX page can use.
  • app/routes/api/ holds the newsletter endpoints.
  • workers/app.ts is the Worker entry; wrangler.json configures it.

See migration.md for how to add an article.

Secrets and bindings

The newsletter sign-up (/api/subscribe, /api/verify) needs one secret, LOOPS_API_KEY. For local development copy .dev.vars.example to .dev.vars and fill it in; in production set it with wrangler secret put LOOPS_API_KEY.

Confirmation tokens are stored in the SUBSCRIBE_TOKENS Workers KV namespace (see wrangler.json). Wrangler creates the namespace on the first deploy; local dev uses a local KV store.

Scripts

Script
pnpm dev Dev server
pnpm build Production build
pnpm preview Build, then serve the built Worker locally
pnpm deploy Deploy to Cloudflare (wrangler deploy)
pnpm typecheck Generate types and run tsc
pnpm test Vitest

관련 프로젝트 살펴보기

불러오는 중…