Law Firm Website on Next.js and Strapi: Speed, Forms and Four Locales

About the project

A European law firm with an immigration practice runs its public website on Next.js and Strapi in four languages. On phones the site was slow, and the front end had no shared component library. We took over the inherited codebase, kept the stack the firm had chosen and shipped every change as a pull request into the firm's own repository. Mobile Lighthouse performance on the home page went from 48 to 81. Page weight fell from 19.5 MB in a production build before the work to 1.8 MB on the live site today.

Background

The codebase came from a previous vendor. It runs Next.js 14 with the Pages Router and server side rendering, pulls content from a Strapi 5 CMS, and serves every page except the default language home under a locale prefix. We ran a Lighthouse baseline on the live site in November 2026. The home page scored 48 for mobile performance, had a layout shift score of 0.219 and loaded more than 17 MB of images on first visit. The logo by itself was a 4096 pixel PNG wrapped in an SVG file of 997 KB, and every page displayed it at 164 pixels.

Hire a Next.js and Strapi team for your firm website
Profile images
We speed up, extend and maintain headless CMS websites for professional services firms, inside the stack you already run.

What we built

Performance, lead capture and localization work on a Next.js and Strapi website for a law firm, delivered inside the existing stack.

Image pipeline for CMS media Icon

Image pipeline for CMS media

Images from Strapi and cloud storage now go through the Next.js image optimizer and come out as resized WebP with srcset and sizes. Images below the fold load lazily, and the hero and feature images get high fetch priority. The home page also stopped loading the video player, about 900 KB of script, before a visitor opens the video.

Fonts without layout shift Icon

Fonts without layout shift

Fonts used to come from a remote CSS import. They are now self hosted through next/font with a size adjusted fallback, and only the weights the design uses get loaded. Headings and the cookie banner stopped jumping when the web font arrives, so cumulative layout shift on the home page went from 0.219 to 0.

Form submissions stored in Strapi Icon

Form submissions stored in Strapi

When someone sends the contact form, the lead email goes out first so the visitor is not kept waiting. The lead is then written to a Strapi collection along with whether the email was delivered. Newsletter signups and answers to the article feedback question each have their own collection. If Strapi fails, the error is logged and the visitor never sees it.

Four locales, one URL rule Icon

Four locales, one URL rule

All four languages carry a locale prefix in the URL. Every page and the sitemap list hreflang alternates plus an x-default. Old paths without a prefix return a 301 to the prefixed address. The sitemap now holds 624 URLs across the four locales.

Component library in Storybook Icon

Component library in Storybook

Storybook 8.6 with the accessibility addon documents the site components in 76 story files, and the library is published as a separate site. New sections get built and reviewed there before they go onto a page.

Takeaway

This law firm website case study shows that a slow multilingual site does not always need a rebuild. The firm kept its Next.js and Strapi stack, its hosting and its URLs. Most of the gain came from changing how images, fonts and the video embed load, and from storing every form submission in the CMS the firm controls. Prospective clients of a law firm often arrive on a phone from a search result. For them, a light first page and an inquiry that does not get lost count for more than a new framework would.

Testimonials

What our clients say

Direct feedback from teams we've shipped with.

HTML CSS Hugo +5

Alpina tech did a good job during the discovery phase of our project

4.9 / 5
J
John C. Delivery Manager Headless CMS rebuild and frontend integration
Strapi Next.js React +9

I had the opportunity to work with Alpina Tech and the experience was very positive. He successfully achieved the goals set, demonstrating talent and commitment at every stage of the work. Moreover, he was always attentive to my instructions and consistently available, which greatly facilitated communication and the de...

5.0 / 5
M
Michael A. Delivery Manager Rebuild Strapi Cloud CMS, migrate content, and integrate with Next.js frontend (Render)
Next.js React JavaScript +5

Alpina Tech is not only a very talented dev, but he's a fantastic partner who has a rich business acumen and is quick to complete anything you throw at him. He knocked out work in a single day that I wasn't expecting for a week. Will definitely work with him again.

5.0 / 5
D
David R. Technical Project Manager Fix Netlify Functions & Assessment Tool for Next.js Website
React Native React Node.js +7

Alpina Tech always responded promptly and got a lot done in the limited environment we had. If things weren’t clear, he’d message and make sure he has the scope right. I highly recommend him for full stack development.

5.0 / 5
J
James K. Technical Project Manager React Native + Node.js Developer for Collectibles App with GPT-4 Integration
UX/UI Design Figma Landing Pages +4

I had the opportunity to work with Alpina Tech on the design of several landing pages and a UI kit, and I couldn’t be happier with the results. He managed to deliver high-quality designs in a very short time. The landing pages were beautifully crafted, and the UI kit was exactly what we needed to streamline the project...

5.0 / 5
R
Robert N. Delivery Manager UX/UI design for landing + UI kit
React.js React Next.js +12

Working with Alpina Tech on a headless CMS project built with Strapi, Node.js, and Next.js was a great experience. His deep understanding of modern frontend frameworks, API development, and server-side rendering (SSR) ensured a smooth and efficient development process. Alpina Tech showcased excellent React.js and Next....

5.0 / 5
W
William P. Project Manager React Developer Needed for Headless CMS with Strapi, Shadcn, and TypeScript
Swift SwiftUI UIKit +8

We worked with Alpina Tech, a top-tier Apple ecosystem developer specializing in Swift, SwiftUI, UIKit, and Combine. Delivered a seamless, high-performance app with Core Data, iCloud Sync, AVKit, MapKit, and Push Notifications. Optimized for iOS, watchOS, and macOS, ensuring smooth performance and App Store compliance....

5.0 / 5
D
Daniel O. Delivery Manager Develop iOS mobile app
JAMstack Hugo Next.js +10

I hired Alpina Tech to build a custom Hugo website. He was a pleasure to work with. He took the time to understand exactly what I wanted at the beginning of the project, and he then proposed a much better way of achieving that. He communicated regularly, provided clear and timely updates, offered ongoing support with m...

5.0 / 5
M
Matthew M. Project Manager Installing a custom theme for Hugo website
Next.js React Sanity +7

Alpina Tech was incredibly helpful and a pleasure to work with! He not only assisted with improving the SEO of my startup but also fixed a challenging Sanity bug with great patience and professionalism. His expertise and attention to detail were invaluable, and he did an excellent job overall. Highly recommended!

4.9 / 5
A
Anthony L. Technical Project Manager SEO Technical Expert for Next.js & Sanity.io Blog Integration
UI/UX Design Figma Web Design +3

I had the pleasure of working with Alpina Tech on the UI/UX design for my public website, and I am extremely impressed with his work. He significantly expanded and improved upon the original design I already had, seamlessly integrating enhancements that perfectly matched the existing style. His ability to develop great...

5.0 / 5
B
Brian D. Delivery Manager UI/UX Designer for AI Startup
Jekyll JAMstack HTML +5

Working with Alpina Tech was a great experience. He is knowledgeable and delivers high-quality work. The agency boasts a wide range of talent, making it a good choice for various projects. Communication was consistently excellent, and Alpina Tech ensured that every aspect of the project worked as expected. The work was...

5.0 / 5
K
Kevin F. Project Manager Web Developer Needed to Convert Figma Landing Page Design to Jekyll Static Site
UI/UX Design Figma Landing Pages +4

Alpina Tech and the team have completed the design quickly and it looks great. They are very responsive and were able to quickly make adjustments that I have requested.

5.0 / 5
L
Lauren E. Delivery Manager Landing page and public site pages design
iOS Swift SwiftUI +3

Alpina Tech is awesome, he fixed a complicated bug on VPN iOS app in two hours.

5.0 / 5
R
Rachel Y. Technical Project Manager ASAP iOS Developer Swift/SwiftUI (Fix VPN Mobile App)
Hugo JAMstack HTML +3

Alpina Tech did an excellent job guiding us through the process and helping us achieve our project goals.

5.0 / 5
B
Brandon A. Project Manager hugo site work
GitHub Pages HTML CSS +4

Alpina Tech helped us launch a research project website. Thank you for being available on short notice!

5.0 / 5
E
Eric B. Delivery Manager Fix github.io page issue
Technical SEO Web Strategy Management

I had the pleasure of working with Alpina Tech on leadership and technical projects. The team is highly motivated, strategically minded, and has exceptional technical SEO expertise. Their approach significantly boosted our digital presence. I highly recommend Alpina Tech for engineering and leadership-driven projects –...

5.0 / 5
S
Steven T. CEO AT CLAWBUSTER GAME PROVIDER Leadership & Technical SEO Optimization
HTML CSS JavaScript +4

Alpina Tech demonstrates all the right qualities of a strong development team – deep frontend expertise, great communication, and a proactive work attitude. A reliable partner for any technical project.

5.0 / 5
S
Scott M. Delivery Manager Frontend Development & Collaboration
Web Development Frontend HTML +3

Alpina Tech is a very professional and reliable team. Working together on web projects was extremely successful. The team showed strong technical knowledge and excellent organizational skills.

5.0 / 5
J
Jonathan N. Business Analyst - Playtech Web Development Collaboration

Keep exploring

More on Law firms

Our team

The team you'll actually work with

We pair deep technical expertise with the kind of ownership you'd expect from your own in-house crew.

  • Same team from discovery to launch
  • Daily standups, Slack, and full transparency
  • Senior-only engineering, design, and QA
  • Long-term collaboration, not staffing
10+ years in the field
EU-based UTC+0 → UTC+3
Senior-only no juniors
Alpina Tech Team

Book a session

Let's just
{ Make it together! }

Learn how our services can improve your business processes, customer experience, and drive growth.

Schedule a meeting

Get a lightning-fast, SEO-optimized, high-performance web app for:

  • SaaS platforms
  • Marketplaces
  • Marketing websites
  • News portals
  • Catalogs & listings

Meeting agenda

  1. 01 Define goals & product scope
  2. 02 Quick technical SEO check-up
  3. 03 Outline your development roadmap
30 min
Web conferencing details provided upon confirmation.

Meet our team

Team member 1Team member 2Team member 3Team member 4Team member 5Team member 6

Success!

Form was sent to our team. We will contact you soon.

Get Your Estimate

Tell us about your project and we'll get back to you with an estimate.

Your Name
Solutions
Contact Email
Estimated Budget
Attach File