Skip to content
MergerAI

Instructions

Follow this quick guide to edit the MergerAI website.

Copy

Each page's text is in src/content/, one file per page (for example src/content/pricing.ts), apart from the components in src/components/: change the words there and the layout stays the same. The links and lines on every page (the demo link, the nav and footer, the closing blocks) are in src/content/site.ts.

The legal pages are in src/content/legal/, in the small Markdown subset described in src/lib/legal-markdown.ts.

Pages

Each page is src/app/<path>/page.tsx. To add one, copy the starter page (src/app/utility-pages/starter-page/page.tsx) to its path, give it its own content file, and add the path to src/app/sitemap.ts and to the page list in e2e/pages.spec.ts. The pages moved from the Webflow site keep its paths, so old links still work. To retire a page, delete it and add its path to src/lib/redirects.ts: CloudFront then answers the old address with a 301 to the page named there.

Blog posts

Each post is a Markdown file in src/content/blog/, named after its path: <slug>.md is /blog/<slug>/. Its images go in public/images/blog/<slug>/. The front matter a post needs is described in src/lib/blog.ts; the build fails on a missing field, and npm test checks every post's images and blog links. The blog lists posts by date, newest first.

Release notes

Each release of the app is a Markdown file in src/content/releases/, with the front matter described in src/lib/releases.ts (version, title, date); its body uses ### for sub-headings. Release Notes lists them newest first. Changes to the website itself go in the changelog (src/content/changelog.ts).

Media

Visuals are lists of candidate files under public/, best first (src/lib/media.ts): a page uses the first file that exists at build time. The product videos go in public/video/; until a file is there, the page shows the stand-in from public/video/interim/ or a still.

Styles, buttons and icons

Colours, fonts and shadows are the theme tokens in src/app/globals.css, used as Tailwind classes (bg-navy, text-blue, shadow-card). Buttons are links styled with cta() from src/components/cta.ts, and the icons are Lucide (lucide-react). The style guide shows them all.

Forms

The demo form (product pages, Contact, Schedule a Demo) and the DSAR form send through sendForm (src/lib/send-form.ts) to the site's form function, which posts each submission to the team's Slack channel.

Checks

  • npm run dev runs the site at http://localhost:3000.
  • npm run lint, npm run format:check, npm run typecheck and npm test check the code.
  • npm run build makes the static site in out/, and npm run test:e2e tests it in a browser at 1440, 390 and 360 px.

All of them run in CI on every pull request.

Deploys

Work on a branch and open a pull request into main; nothing is pushed to main directly. GitHub Actions runs the checks, then deploys with SST to AWS (an S3 bucket behind CloudFront, plus the form function):

  • every branch gets its own preview, br-<branch>, removed when its pull request closes; the link is in the run summary and on the pull request;
  • main deploys to staging, website-stg.

Previews and staging are not indexed and have no analytics.