neter.ch
Started August 2025 · Live in production, co-maintained with the practice
Rebuilt a Swiss gynecology practice's Wix site as a static Astro site, cutting homepage JavaScript by 20×, consolidating five legacy domains, and moving media onto a Pulumi-managed S3 and CloudFront CDN.
- Wix to Astro rebuild
- 20× less JavaScript
- Five domains consolidated
- Pulumi-managed CDN
- Role
- Development, content migration, infrastructure
- Stack
- Astro
- Svelte
- Tailwind CSS
- TypeScript
- Netlify
- Netlify Forms
- Amazon S3
- CloudFront
- Pulumi (Go)
- Go
- Deno

What?
neter.ch is the website for Frauenarztpraxis am Graben, a gynecology and obstetrics practice with two locations in Aarau, Switzerland. It covers the clinic’s services, individual profile and CV pages for 17 clinicians, an online repeat-prescription form, appointment booking, patient leaflets, a photo gallery, and location maps.
Why?
The practice’s previous site was built on Wix and spread across five legacy domains. On desktop, the homepage shipped 1.58 MB of raw HTML (205 KB compressed) and pulled 85 JavaScript files totaling 640 KB compressed across 139 network requests.
The layout had accumulated the usual Wix drag-and-drop drift: tilted circular booking stickers clipped on the left edge (“ERMIN ONLINE BUCHEN”), a tall empty pink block above Dr. Neter Blättler’s portrait that pushed opening hours below the fold, and a mobile layout where the portrait fell off the first screen while a floating chat bubble covered the emergency hospital number. Almost every service link in the navigation pointed to scroll anchors on a single monolithic /angebot page, and every doctor’s “more info” button opened a raw PDF hosted on Wix’s CDN instead of a web page.

I rebuilt the site as a Git-backed static Astro build on infrastructure the practice owns, turning the same portrait into a full-bleed hero with a quick-links card and a clear booking button above the fold on both desktop and mobile. The rebuilt homepage drops to 96 KB of raw HTML (13.5 KB compressed), 18 network requests, and 30 KB of compressed JavaScript across 7 files, and consolidates all five legacy domains under neter.ch.
How?
Static site, CV pages, and structured data
The site is a static Astro build with Svelte 5 components (navigation submenus, the repeat-prescription form, and a masonry photo gallery) and Tailwind CSS, hosted on Netlify. Pages, services, and the staff roster live in Markdown, MDX, and YAML files. Repeat-prescription requests go through Netlify Forms, appointment booking embeds the OneDoc widget, and the location map uses the Google Maps JavaScript API.
Splitting up the monolithic Wix pages gave each of the practice’s 17 clinicians an indexable HTML profile page at /team/<slug>/ generated from YAML, complete with schema.org/Person JSON-LD and automatically cropped 1200×630 OpenGraph portraits (position: "top" so faces stay framed).
Every page also outputs schema.org/MedicalClinic JSON-LD whose openingHoursSpecification is built at compile time (using @js-temporal/polyfill) from the same config.yml that renders the visible opening hours, so Google search snippets stay in sync whenever hours change.
Automated Wix migration
Instead of copying pages and assets by hand, I wrote small migration scripts for each step: Deno scripts (jsdom and turndown) to convert exported Wix HTML into Markdown and parse the nurse roster JSON, Bash and PowerShell upload scripts (backed by aws-vault) to move images and PDFs onto S3 under UUID keys, a Go script to rewrite every old Wix CDN reference across the repository, and a Deno link checker that runs HTTP HEAD checks against external URLs.
All five legacy domains (graben-aarau.ch, gyn-graben.ch, frauenpraxis-graben.ch, graben-neter.ch, and gynprax-am-graben.ch, both apex and www) permanently redirect to https://neter.ch in netlify.toml.
Infrastructure and co-maintenance
Images, videos, and patient PDFs are served from an S3 bucket in eu-central-1 behind CloudFront, defined with Pulumi in Go. UUID object keys paired with Cache-Control: public,max-age=604800,immutable mean updated files never get stuck behind stale CDN caches, and Pulumi deletion protection guards the bucket and distribution against accidental teardown.
Because content lives in plain Markdown and YAML and media uploads are scripted, the practice doesn’t need to wait on a developer for routine edits. Since launch, the practice’s business manager has pushed over twenty commits directly to the repository to add new nurses, upload clinic photos to S3, update phone numbers, and publish new service sections.