Common Development Tasks
Short recipes for the most frequent requests. After each one, run npm run build and check the page locally before pushing.
Update hours, season, or tour times
- Visit page: the
dlrows in the Hours & Season section ofsrc/app/visit/page.tsx, and the intro sentence inPageHero. - Home quick facts:
src/components/home/QuickInfoStrip.tsx("Open daily, Apr–Nov"). - FAQ: "What are the hours of operation?" in
src/lib/faq.ts.
Update tour cards or prices
Edit src/lib/tours.ts (priceLabel, duration, highlights, badges). The admission note ("Admission starts at $10…") is in src/app/visit/page.tsx, and "Admission from $10" is in QuickInfoStrip.tsx.
Add or edit an FAQ
Add an object { question, answer } to the right group in visitFaqGroups (src/lib/faq.ts). The accordion picks it up automatically.
Change a membership tier
Edit the tier in membershipTiers (src/lib/support-content.ts): price, benefits, tagline, and joinUrl (the HighLevel payment-link ID). Coordinate with the HighLevel product so the price matches the checkout. Set featured: true to highlight a tier.
Change the donation form
Update DONATION_CHECKOUT_URL in src/components/support/DonateWidget.tsx.
Update contact details or social links
siteConfig.org and siteConfig.social in src/lib/site-config.ts. The footer, DAF panel, and form error messages update automatically.
Add a venue
Add a Venue to src/lib/venues.ts, and put optimised images in public/images/venues/. Venues render in array order.
Add a history chapter, hotspot, or restoration project
Append to historyChapters, mapHotspots, or restorationProjects in src/lib/history.ts. Link a chapter to a hotspot with mapId = hotspot id. Hotspot x/y are percentages on the fort map. Mark the present-day chapter with isPresent: true.
Add a glossary term
Add { term, definition } to fortTerms in src/lib/fort-terminology.ts. Keep the list alphabetical, because the page groups terms by first letter in array order.
Add a new page
- Create
src/app/<slug>/page.tsxwith ametadataexport (title,description,alternates.canonical). - Use
PageHero(orBreadcrumbplus a header band),Container, and the section and heading patterns from existing pages. - Add the route to
routesinsrc/app/sitemap.ts. - Add it to
primaryNavand/orfooterLinksinsite-config.tsif it needs a link. - If it replaces an old WordPress URL, add a 301 in
public/_redirects.
Add a redirect
Append <old-path> <new-path> 301 to public/_redirects. Use trailing slashes on internal targets (the site uses trailingSlash: true).
Replace an Explore the Fort video
Upload the new MP4 to R2 under a new file name, update videoPath in src/lib/explore-fort.ts, and optionally add captionsPath (VTT) and posterPath. The list must stay at exactly six entries.
Add a new webhook-backed form
Reuse LeadForm with a new NEXT_PUBLIC_*_WEBHOOK_URL, and set source, tags, and opportunityPrefix. Better still, when delivery must be confirmed, add a Pages Function modelled on event-inquiry.ts.
Expose something new in the CMS
See Decap CMS Configuration → Adding a CMS-editable field or area.
No comments to display
No comments to display