Next.js (App Router) static site for Geografa — landing page plus an archive of interactive Mapbox demos.
npm install
npm run dev # http://localhost:3000/
npm run build # static export → ./outThe app is built for the server root (no basePath). Local dev is http://localhost:3000/.
If the site is served under a prefix (e.g. https://user.github.io/portfolio/), set basePath in next.config.mjs and the same string as BASE_PATH in lib/basePath.ts, then rebuild.
- Each legacy demo is a static HTML file at the root of
public/(e.g.public/snow.html), so relative asset URLs like./data/…and./img/…resolve to/data/…and/img/…when the demo is served as/snow.html. - The archive at
/examples/lists them;/examples/<slug>/wraps the same HTML in an iframe (iframe src="/<slug>.html"at root, or prefixed whenBASE_PATHis set).
Reference HTML in the repo root: geografa.html, design-system.html (not built by Next).
Build produces out/. Publish the contents of out/ to your host (e.g. gh-pages branch, or any static host at your chosen root).
public/config.js— stub for demos that expectSMTConfig(e.g.service-area.html).