A static Next.js website for a fictional Canberra heating and air conditioning business in the Jamstacks gallery. The site runs independently of the starter and portal checkouts.
Use Node 24 or later. Run npm ci and npm run dev for local editing. Run npm run build
followed by npm start to preview the static export in out/.
| Route | Purpose |
|---|---|
/ |
Repair and install paths, system comparison teaser, districts, typical service prices and contact details |
/systems/ |
Split and ducted specs, fit filter, ceiling plan and sizing guidance |
/repairs/ |
Homeowner checks, symptom finder, repair pricing and enquiry path |
/quotes/ |
Measure-up and installation process, indicative prices and enquiry path |
/service-areas/ |
District map, suburb finder, surcharges and typical lead times |
/contact/ |
Separate message guides at #repair and #install, plus one enquiry channel |
/404.html |
Static error page |
| Edit | Where and how |
|---|---|
| Installation price and availability | In content/systems.ts, find the system by its stable id. For example, in ducted-zoned-medium change fromPriceAud from 11500 to 11900 and availability from 'available' to 'limited'. Prices are whole AUD, include GST and cover a standard install. Systems and Install quotes share the price. Systems shows the availability badge. Use available, limited or paused. |
| Service prices | In content/pricing.ts, edit priceAud, unit or note for the relevant ID, such as diagnostic-visit. Home and Repairs share the figures. Edit the split-clean additional-head amount in its note. Leave the free measure-up at 0. |
| Suburbs and district charges | In content/service-areas.ts, add a suburb to the district’s suburbs list. For example, add 'Taylor' to gungahlin. The grouped list, finder and schema use the same list. Keep each suburb in just one district. Use whole AUD for travelSurchargeAud, and usualRepairLeadDays for the lower and upper bounds in repair areas. If you add a district, add its geometry in content/district-shapes.ts. |
| Phone hours | In content/hours.ts, edit opens and closes in 24-hour local time, for example '07:30'. Include each weekday once and omit both times for any closed day. Edit the IANA time zone here and in site.config.json if the business moves. The hours table, neutral phone-hours summary, browser status and schema share the schedule. Same-day intervals are supported. |
| Symptoms | In content/repairs.ts, keep a unique, stable ID and an uppercase LCD code of at most eight characters. Edit possible causes, the safe first step, the applicable families and the priority. |
| Business details | In content/business.ts, edit the display name, wordmark, public email, display phone and tel: link. Also update name in site.config.json when renaming. Edit the depot description on Contact. |
| Page wording | Edit headings, copy, calls to action and checklist entries in each app/**/page.tsx. Edit the Home metadata description in site.config.json and the other page metadata descriptions in their route files. |
Run npm run check after editing. To verify the example edits, serve the new export, compare the medium
ducted price on Systems and Install quotes, check the LIMITED badge on Systems, and search Areas for
Taylor.
The Thermal Cutaway design pairs an illustrated Canberra house cutaway with a thermostat dial,
appliance diagrams and a schematic district map. The home hero is one illustration in two lighting
states: public/hero-light.webp (day) and public/hero-dark.webp (the same scene at night). The theme
picks one and only that file downloads. To replace the art, keep both files the same scene and framing,
and give each a flat backdrop matching the --sky token (#ECF1F5 light, #0A1420 dark) so it blends
into the hero. The social image is public/og.png. SVG artwork lives in components/climate-art.tsx,
including the isobar ContourEdge section borders and Streamlines backgrounds,
components/district-map.tsx and components/icons.tsx. The frost, ultramarine, ember and sky tokens,
blueprint grid, vent slats, stipple, louvre and LCD textures live in app/tailwind.input.css. Host Grotesk, Ubuntu Sans and Tektur are self-hosted by their
Fontsource packages under the SIL Open Font License. Each package includes its license.
site.config.json holds the public name, description, domain, default time zone and Jamstacks
integration. Preserve the provisioner’s config shape, including any provisioningId it adds.
See .env.example for local overrides.
| Environment variable | Public build-time meaning |
|---|---|
JAMSTACKS_SITE |
Public website ID. A blank value uses the file default. |
NEXT_PUBLIC_JAMSTACKS_CDN_URL |
CDN asset base, defaulting to https://cdn.jamstacks.net |
NEXT_PUBLIC_SITE_DOMAIN |
Hostname overriding the config domain |
SITE_TIME_ZONE |
IANA time zone overriding the file default for live status |
PAGES_BASE_PATH |
Project path such as /preview. Leave blank for a custom domain or root export. |
PAGES_BASE_URL |
Pages origin and path, which take precedence for canonical URLs |
JAMSTACKS_ALLOW_LOCAL_CDN |
Localhost CDN opt-in for development. Disallowed in Actions. |
Use public values only. Keep private notification addresses and credentials in the hosted service.
Contact renders one <jamstacks-support-form> and loads one site bootstrap when a public Jamstacks
site ID is set. With no ID it shows the email fallback. The email and phone appear in both states.
The hosted runtime owns the name, email and message fields, validation and submission. The repair
and installation checklists are message guidance, with copy buttons on browsers that offer the
Clipboard API. The hosted form accepts no attachments. SiteLink loads a full document when entering
or leaving Contact, including when going directly to a checklist fragment.
npm run check
PAGES_BASE_PATH=/preview PAGES_BASE_URL=https://owner.github.io/preview npm run build
npm start -- --base /preview --port 3000
For a project-path check, repeat the build with a public test JAMSTACKS_SITE to inspect the
configured host and bootstrap. Check unconfigured and configured Contact, navigation in both directions,
canonical URLs, social image URLs and sitemap. Verify hosted message delivery separately using a
configured backend. Local browser checks should cover light and dark at desktop and mobile widths,
keyboard navigation, the filters, clipboard behavior, hours and the 404 page.
.github/workflows/pages.yml uses npm ci, tests, typecheck and static export. It preserves Jamstacks’
provisioning_id dispatch input
and correlated run name. It builds pull requests without deploying, and publishes main/manual runs.
Configure Pages to use GitHub Actions. GitHub ignores a CNAME file for Actions deployments, so do not
add public/CNAME; the custom domain is a repository setting. The workflow sets it before building
when a PAGES_ADMIN_TOKEN secret is available (a fine-grained token with Administration and Pages
write access to the repository, e.g. as an organisation secret). The domain is the SITE_DOMAIN
variable, else site.config.json’s domain, else <repo-name>.jamstacks.net for JamstackTemplates
repositories. Once the domain is set and its certificate is issued, a later deploy also enforces HTTPS.
Without the secret the step only prints a notice; set the custom domain and HTTPS in Settings → Pages.
DNS is managed separately; for template demos the CNAME targets jamstacktemplates.github.io.
A host-level CSP must permit same-origin Next.js scripts/assets, the inline theme bootstrap (using an
appropriate hash/nonce policy), the configured Jamstacks CDN scripts/assets and the published form’s
API connection origin. Derive actual directives from the deployed component. Optional maps require
frame-src https://www.google.com. Apply CSP at the host; static export cannot set response headers
through a running Next.js server. Do not put private credentials into CSP or relax policies blindly.
jamstacks/ contains gallery metadata and captures. Customer builds, tests and
Pages can run with that folder removed. The customer social image lives at public/og.png.
After a fresh root-path build, regenerate the gallery captures using the portal’s optional capture tool, then run the separate manifest check.
node /path/to/jamstacks.net/tools/template-screenshots/capture.mjs \
--template "$PWD" --modes light,dark --executable /usr/bin/chromium
node --test jamstacks/config.test.mjs
After review, remove plan/ and .claude/skills/ before gallery publication.