Mirror Page
A modern, static mirror station frontend built with Next.js 14, Tailwind CSS, and Shadcn UI.
Demo
Demo Site on Vercel
Features
- ⚡ Pure Static Generation (SSG): Fast, secure, and easy to deploy.
- 🎨 Modern UI: Built with Shadcn UI, Framer Motion, and Tailwind CSS.
- ⚙️ Configurable: Fully controlled via
mirrors.toml.
- 🔄 Auto-Build: Generates static site at container startup based on config.
Deployment
The container is designed to build the static site at startup based on your configuration files.
- Configure: Edit
mirrors.toml and README.md.
- Run:
The container will:
- Read your
mirrors.toml.
- Run
npm run build to generate static HTML.
- Start Caddy to serve the site and your
/data/mirrors.
Configuration (mirrors.toml)
[site]
title = "My Mirror Station"
# ...
toml
Output static files only
docker run --rm \
-v ./mirrors.toml:/app/mirrors.toml \
-v ./README.md:/app/README.md \
-v ./output:/app/dist_static \
channinghe/mirror-page:static-build
Development
npm install
npm run dev
License
MIT