The page mounted two complete bodies: pages/Index wrapped Install (then named Hero, itself a full page with its own fixed header and footer) in a leftover template shell — a second fixed header at the same top/z-index that occluded the first bar's links, plus a second footer carrying copy about container solutions and a 2024 copyright. Install is the page; the shell and the unused template components are gone, so the document now has one header and one footer and every header link hit-tests to itself. Geist named in CSS but absent from the bundle: the CDN @import it came from 404s, and an @import cannot place an @font-face in our own stylesheet. Ship the variable woff2 from src/fonts so the served CSS carries the faces it names, and move the theme into @theme in index.css so --font-sans feeds preflight and the utilities from one place. The build asserts the CSS carries @font-face, Geist, an emitted woff2, and no remote @import. Deploy ran to GitHub Pages while hanzo.sh is served by the assets Worker, so no push reached the live surface; deploy.yml now runs wrangler. Drop the third-party editor script from a page that tells people to pipe a shell, and the deps the removed components pulled in (CSS 63 -> 20 kB, JS 380 -> 244 kB). Co-authored-by: Hanzo Dev <[email protected]>
13 lines
276 B
TypeScript
13 lines
276 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react-swc";
|
|
|
|
export default defineConfig({
|
|
// Relative asset paths: works served from a domain root or a subpath.
|
|
base: './',
|
|
server: {
|
|
host: "::",
|
|
port: 8080,
|
|
},
|
|
plugins: [react()],
|
|
});
|