← All writing

October 26, 2026 3 min read

MaktabTop: moving from Create React App to Next.js 15

Why react-snap and Helmet stopped being enough, how the move was split into steps and what changed as a result.

MaktabTop is a catalogue of private schools in Tashkent. It started on Create React App: routing with react-router-dom, meta tags with react-helmet and prerendering for search engines with react-snap. In July 2026 it moved entirely to the Next.js 15 App Router.

Why move at all

Search is a catalogue's main channel. In CRA, meta tags are set in the browser after JavaScript runs, while react-snap opens pages in a headless browser at build time and saves the HTML. That is fragile: a new school's page and the sitemap only appear after another deploy.

There were three goals: reliable SEO through SSR and ISR, getting rid of react-snap's fragility, and updating pages and the sitemap when a school is added — without redeploying.

How it was done

First the decisions were written down: public pages fetch data on the server and are cached with ISR, the admin panel stays fully client-side, and the global CSS moves over unchanged. Then every route got a mapping — from a react-router path to an App Router file — and the routing APIs were swapped: Link, useRouter, useParams, usePathname.

The most important part was SEO. Helmet was replaced by the server-side Metadata API: a metadata export on static pages and generateMetadata on school and district pages. JSON-LD (School, BreadcrumbList, FAQPage) renders directly in a server component. Four packages went away:

  • react-scripts and react-snap — building and prerendering are now Next.js’s job
  • react-router-dom — routes come from the file system
  • react-helmet — meta tags on the server

The result

The data layer moved to ISR with unstable_cache and a one-hour revalidate; when an admin edits something, a server action refreshes the cache immediately. The sitemap became dynamic. By the end of the migration, next build prerendered 53 pages.

Later the database changed too: Firebase was removed entirely and replaced with Supabase (Postgres + Auth). Today MaktabTop lists 229 schools, and every public page ships as ready-made HTML via SSG or ISR.

ProjectMaktabTop Private school catalogue

// Contact

Have a project?
Let's build it.

A new product, rewriting an existing system or a collaboration — message me on Telegram, I usually reply within a day.

Telegram: @atomlabs_support