Installation
SwiftAgency is a regular Astro project. There is no build step of its own, no framework to learn and no account to create.
Requirements
Section titled “Requirements”- Node.js 22.12 or newer. Check with
node -v. - npm, which comes with Node. pnpm and Yarn work too; the commands below use npm.
- Git, if you want to use the CMS or deploy from a repository.
Install and run
Section titled “Install and run”# In the folder you downloaded or clonednpm installnpm run devOpen http://localhost:4321. Edits to files in src/ show up as you save.
The visual editor runs on the same server at http://127.0.0.1:4321/keystatic, or open it straight away with npm run cms. See Keystatic CMS.
Scripts
Section titled “Scripts”| Command | What it does |
|---|---|
npm run dev |
Dev server at localhost:4321, CMS at /keystatic |
npm run cms |
Dev server that opens straight into the CMS |
npm run build |
Static build into dist/ |
npm run preview |
Serves the production build |
npm run check |
Astro Check: types and templates |
npm run lint |
ESLint |
npm run format |
Prettier, with the Astro and Tailwind plugins |
npm run verify |
Check, lint, format check and build in one go. CI runs this. |
npm run lighthouse |
Builds, then runs Lighthouse CI with the same thresholds as CI |
Before your first launch
Section titled “Before your first launch”The demo is a fictional studio called Swift. Work through this list and nothing of it will be left on your site.
-
Studio details. Edit
src/config/site.ts: name, legal name, URL, email, phone, address, social links and currency. See Configuration. -
Domain in robots.txt. Change the
Sitemap:line inpublic/robots.txtto your domain. -
Preset. Set
theme.presetto the look you want and settheme.switchertofalseso visitors don’t see the demo preset picker. See Presets. -
Words. Page copy, navigation labels, services and prices live in
src/i18n/ui/en.ts(andde.ts,id.tsif you keep those languages). See Languages. -
Work and articles. Replace the case studies, journal articles and open roles with your own, in the CMS or by hand. Delete the demo images in
src/assets/you no longer use. -
Legal pages. The privacy policy and imprint are template text. Rewrite them in
src/content/legal/and have them checked for your country. -
Contact form. Set
formEndpointinsite.ts, or the form stays in demo mode. See Contact form. -
Social image and icon. Replace
public/og.png(1200 × 630) andpublic/favicon.svg. -
Check and ship. Run
npm run verify, then deploy.