Start a projectContact
← All work

Case Study

Auto Erb

A website that in 2026 still consisted of 21 HTML pages, a 259 KB script file and a translation service that asked Google on every request. How it became a Next.js site in three languages, and what broke in the week after the cutover.

Client
Auto Erb, Merano. Mercedes service, bodywork, used cars, spare parts
Timeframe
Summer 2026, cutover in August
Role
Concept, design, full-stack development, operations
Stack
React 19, Next.js routing, Node 22, MySQL, Plesk
Homepage of the old Auto Erb website
BeforeInter, cyan as the signal colour, a menu with submenus along the top edge.
Homepage of the new Auto Erb website
AfterGeorgia on paper white, champagne as the only accent, a single floating bar.

01 / Starting point

What was there

Nobody replaces a working system out of boredom. The old Auto Erb site did its job, it had grown over years, and you could tell.

Technically it looked like this: 21 static HTML pages for the fixed content, plus PHP pages for anything dynamic, one for vehicles, one for spare parts. Sixteen PHP endpoints sat under /api, and a cron job wrote a 95 KB sitemap.xml every day. The entire frontend hung on a single script.js of 259 KB and a styles.css of 105 KB. Every page loaded both in full, whether you opened the legal notice or the vehicle search.

But the real breaking point wasn't file size. It was the multilingual setup.

Three languages, only one of which existed

The site was available in German, Italian and English. Only one of them actually existed. The other two were produced at request time: a PHP endpoint sent the text to Google Translate and stored the result in a MySQL table. Around that sat a counter for the monthly character quota and a separate table for failed requests with a six-hour cooldown, so that an expired API key wouldn't trigger a fresh call for every single visitor.

Taken on its own, that was built carefully. It was still the wrong place for translation. To a search engine, every Italian page consisted of content that depended on a cache hit. And nobody at the dealership could phrase a sentence differently in Italian than in German, there was no Italian sentence to edit.

02 / Decision

Rebuild instead of patch

Modernising a grown site usually means keeping the old assumptions and giving them a new look. Here the assumptions were the problem. So: rebuild, with three rules fixed before the first line of code:

  • Three languages, three real route trees. / for German, plus /it/… and /en/…. Every page exists, can be linked, has its own metadata and can be refined by hand. Translation is editorial work, not a runtime decision.
  • Data stays where it comes from. Vehicles come from the dealership's stock system, spare parts from the intranet the workshop uses every day. The website reads, it doesn't administer. Nothing the business depends on gets abolished by the rebuild.
  • One process instead of two worlds. Before: static HTML plus PHP plus MySQL plus cron, configured in four different places. After: one codebase, one Node process, one place to look.

The stack is React 19 with Next.js App Router conventions. No Vercel: the site runs as a Node 22 process on the same Plesk server that used to serve the PHP, the client already has it, it's paid for, and a car dealership in Merano does not need an edge network in thirty regions. The underlying runtime is a Next-compatible layer on Vite. That decision came back later; more on it below.

03 / Design

Three colours and two typefaces

The old site worked with bright cyan on dark blue-grey, white cards and a lot of shadow. One detail from its styles.css sums the problem up: the colour variable is called --red and contains #00adef. At some point the house colour was swapped and the name stayed, and has needed explaining at every occurrence since.

The new site has three colours and sticks to them: ink #070808 as the ground, paper #f0ece3 for type and light surfaces, champagne #c7b384 as the only accent. Champagne appears in exactly three places, under the active navigation item, as a hairline under links, and in the uppercase micro-labels. No second signal colour, no coloured buttons, no warning-red exception.

  • Ink#070808Ground
  • Paper#f0ece3Type and light surfaces
  • Champagne#c7b384Accent

Two typefaces, no font file

Headlines are set in Georgia at a line height of 0.92 and −0.05em tracking, tight, so that large lines read as a shape rather than as text. Body copy is Arial. Both are present on every device: the new site loads not a single font file, where the old one pulled Inter over the network. That saves more than load time, it removes the brief flash on first paint, and it ends the conversation about Google Fonts and data protection.

A serif for a car dealership is a deliberate statement. A grotesque would have carried speed; but the workshop has stood in the same place since 1976, and a serif carries that better. Georgia's figures also run as old-style numerals, which calms model years and mileages inside running text. Where numbers sit in columns, in the vehicle stock, the site switches to tabular figures.

One navigation, two arrangements

On a phone the top holds only the brand and the language switch. The navigation itself floats as a slim bar along the bottom edge, within thumb reach instead of out of it. From 901 pixels wide, both bars are dissolved with display: contents and sit as one floating bar at the top, blurred glass behind it, contracting around the logo as you scroll.

What matters isn't the effect but that these are the same elements. There is no second, hidden mobile navigation to forget when something changes, the classic failure where a new menu item is missing on phones for months.

Motion with one rule

Nothing moves that the visitor didn't set off. On a first visit a short opener runs with the logo and two shutters; click onward and you never see it again. Page changes open as a circle at exactly the point you clicked. Sections fade in as you scroll, once, with no bounce back. And the white cards are gone without replacement: separation now comes from space and hairlines.

04 / Structure

One table everything follows from

The site has sixteen page types: home, a services overview and four service pages (workshop, bodywork, Mercedes service, vehicle purchase), vehicle stock and spare parts with one detail level each, contact, account, and the legal pages. Times three languages, that's forty-eight fixed addresses.

The core of it is still not a collection of forty-eight pages but a table. In locales.ts, every page key holds its path in every language:

/werkstatt · /it/officina · /en/workshop

Translated addresses, in other words, rather than a language parameter bolted on. Italian customers get Italian URLs. From the same table come the navigation, the footer, every page's canonical, the hreflang links between languages, and sitemap.xml. A new page means one entry, three paths, done. Everything else follows from it and therefore cannot drift apart, which is why the canonical failure further down was fixed by changing a single line.

The homepage in seven moves

Full-bleed shot of the building, a manifesto line, an image sequence (01 to 03), the vehicle stock, a craft section carrying the line "Mercedes-Benz Service Partner · Meran seit 1976", the services grid, contact. First the building, then the promise, then the goods, not the other way round. The order was the one design question the project genuinely argued about.

Depth

Nothing sits more than two clicks from the homepage. Vehicles and spare parts are the only pages with a third level, and a list always leads there, never a menu. The old site had a main menu with submenus for the same content, convenient for anyone who already knew the structure, useless for everyone else.

Vehicle overview on the new Auto Erb website
The vehicle overview: the number of available cars set as a display figure, the list below it. The stock behind it refreshes hourly.

05 / Build

What actually got built

Vehicle stock

An hourly cron reads the XML export from the stock system and writes a vehicles.json. The site reads that file at runtime and only reloads it when the timestamp changes. No MySQL in the request path, no PHP, no connection that can fail under load. The feed language is Italian; German and English come from a curated glossary of equipment terms rather than a translation service, for "heated rear seats" or "detachable tow bar", a list is simply more accurate than a model.

Spare parts

The parts are maintained in the company intranet, and that stays. The website reads the same MySQL table directly. If the database goes down it must not take the site with it: the parts pages show less, but the site stays up.

Images and old addresses

Vehicle photos live in an S3 bucket. A route keeps serving them under the old path /api/image.php, including a placeholder for keys with no object behind them. It looks like leftover baggage at first glance, but it's deliberate: the stock data contains thousands of image URLs in exactly that shape, and out on the web there are links somebody set at some point. Retiring an address costs more than keeping it alive.

Around it

A small CMS for the editorial copy, server-rendered PDF window displays for the cars in the showroom, the contact form, and the legal pages in all three languages.

06 / Cutover

The uncomfortable week

The moment the new site served the domain, no PHP ran over HTTP any more. The old files were still there, but the Node process intercepted every request first.

As a result, four things broke at the same moment: the vehicle photos, the stock import, the spare parts catalogue, and the loyalty card customers receive by link. On the phone it sounded like four different problems. It was one.

That's the kind of failure you don't find by testing, only by switching over, on staging the old PHP was still running. The lesson was organisational rather than technical: before the next cutover, write down everything that runs against the old address, explicitly including the things nobody remembers any more. The loyalty card cost me two hours because it isn't linked from any menu.

07 / Diagnosis

Three failures that look like nothing in a browser

The most instructive part of the project. All three shared a pattern: you open the page, it loads, it looks good, and something is fundamentally broken anyway.

  1. The canonical without www

    nginx answers autoerb.com with a 301 to www.autoerb.com. The new site's configuration held the address without www. So every canonical, every hreflang and every sitemap entry pointed at a URL that immediately redirects back to the page itself.

    The crawler report came back with 159 faulty canonicals, 312 self-references, and in the end it couldn't evaluate a single page. Overall score: 0 %. None of it was visible in a browser.

  2. Metadata that ends up in the body

    By default the runtime streams the output of generateMetadata after </head>, into the body. Browsers pick it up via React, so the tab looks right. A plain HTML parser, on the other hand, sees a page with no title, no description, no canonical at all. That's exactly what the report said: 159 pages without a page title.

    The switch for this is called htmlLimitedBots, for matching user agents, metadata is rendered blockingly into the head. The built-in list contains Bingbot and the social bots. Googlebot isn't in it.

  3. The wrong application's headers

    The public domain carried, word for word, the header set I had written for the internal stock application. Which meant X-Robots-Tag: noindex, nofollow on every single response of the client's site. Plus a Content Security Policy without 'unsafe-inline', while the runtime streams its page data through inline scripts and passes no nonce, hydration aborted with React error #419, the site was interactively dead and looked perfectly normal doing it. And an img-src rule that didn't know the CMS domain, which is why the hero image was missing.

    In the console this looked like three independent bugs. The worst of them, the noindex, produces no console message at all.

What changed since

Two commands now sit in the project documentation and run after every deployment: a curl -sI against the homepage showing the headers that are actually delivered, and a request with a bot user agent checking whether the <title> appears before </head>. Ten seconds together. Without them these failures could have gone unnoticed for weeks, and in the case of the noindex, traffic wouldn't have dropped, it would never have started.

08 / Today

Where it stands

  • The site runs in three languages as three real page trees, each one editable by hand.
  • Vehicle stock refreshes hourly, with detail pages and a printable PDF sheet per car for the showroom window.
  • Spare parts still come from the intranet, the rebuild didn't change the daily workflow by a single click.
  • Since September 2026 parts can be bought directly. Checkout runs on a dedicated commerce layer with Stripe while the intranet stays the catalogue source. The shop is a switch: turn it off, or let the service fail, and only the buy button disappears, the parts pages stay complete.
  • Alongside it, an internal tool for vehicle intake has grown, record, quote, purchase contract, serving the same data as the public site.

09 / Takeaways

What I take from it

The architecture questions were the easy ones. Which framework, which data layer, which routes, that can be decided at a desk and was settled within two days. What cost time was the environment: a redirect, a library default, a text field in a server panel.

Operations beat elegance. It would have been technically cleaner to replace the parts administration along the way. It would also have been the point where the project failed in the workshop's daily routine. A good migration is largely invisible to the people who work with the thing.

Check what gets delivered, not what's in the code. All three serious failures would have been visible in the server's response within seconds. The source code said exactly the right thing in each case.

Got a project in mind?

Tell me in a few sentences what it is about. You get an honest assessment and a fixed price.

Start a project

or directly: felixfelixerbcom · +39 327 389 5562
Reply usually within 24 hours