My personal site — dann.my. Next.js, TypeScript, Tailwind.
Needs Bun.
bun install
bun devThen open http://localhost:3000.
None are required to run the site, but a few features stay quiet without them. Put them in .env.local:
| Variable | Used for |
|---|---|
SPOTIFY_CLIENT_ID, SPOTIFY_CLIENT_SECRET, SPOTIFY_REFRESH_TOKEN |
Now-playing track |
UPSTASH_REDIS_REST_URL, UPSTASH_REDIS_REST_TOKEN |
Storing presence |
PRESENCE_SECRET |
Auth for the presence endpoint |
app/ pages and API routes
components/ shared UI
lib/ helpers, constants, blog loading
posts/ blog posts as MDX
Add an .mdx file to posts/ with front matter:
---
title: hello world
description: my first post
date: "August 12, 2024"
---It shows up at /blog/<filename>.
bun dev— dev serverbun run build— production buildbun start— serve the buildbun run lint— eslint