Back to projects
GitHubVisit

guany.me

▲ Guany's website

CategoryStack
FrameworkNext.js 16 (App Router)
UIshadcn/ui + Tailwind CSS 4
ContentStreamdown
I18nnext-intl

Install#

bash
pnpm installcp .env.example .env.local

Environment Variables#

VariableRequiredDescription
SITE_URLNoPublic site URL used for sitemap and metadata
GITHUB_TOKENYesGitHub personal access token
SITE_CONFIG_URLNoRemote site config JSON URL, e.g. https://assets.example.com/config/site.json

Usage#

Development#

bash
pnpm dev

Build#

bash
pnpm build

Hero Background Config#

Hero background first tries to load the remote site config from SITE_CONFIG_URL and read the hero field. If the remote config is unavailable or invalid, it falls back to Bing daily wallpaper.

Example site.json:

json
{  "hero": {    "mode": "custom",    "url": "https://assets.example.com/img/background.webp",    "position": "center"  }}

Supported fields:

  • mode: custom or bing
  • url: custom hero background image URL
  • position: passed through to CSS background-position

License#

© Guany