Files
penguin-harness/packages/landing/vite.config.ts
T
Yaowei Zheng 4fa2eef446 Serve the site from the penguin.ooo apex domain
Set the Pages workflow BASE_PATH to / (assets 404ed on the custom domain under the /<repo>/ subpath) and point all hardcoded site links at https://penguin.ooo.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018ihk8iQuo3kv2aPjAYEPuR
2026-07-19 15:05:47 +08:00

18 lines
676 B
TypeScript

/**
* Vite config: static landing page (React SPA + Tailwind CSS 4).
*
* BASE_PATH is injected by the GitHub Pages workflow ("/" — the site is served from the
* custom apex domain https://penguin.ooo/); local dev and previews also default to "/".
* Blog posts are local Markdown files imported at build time via import.meta.glob (?raw),
* so the built site is fully static — no server or CMS involved.
*/
import react from "@vitejs/plugin-react";
import tailwindcss from "@tailwindcss/vite";
import { defineConfig } from "vite";
export default defineConfig({
base: process.env.BASE_PATH ?? "/",
plugins: [react(), tailwindcss()],
server: { port: 7366 },
});