All projects

Cross-country skiing news portal

Skipol

I moved a portal with posts going back to 2007 from legacy PHP to Next.js 16 without losing a single post, comment or old URL.

Role
Migration, website, editorial panel and deployments. All of the code is mine.
Stack
  • Next.js 16
  • React 19
  • TypeScript
  • Tailwind 4
  • SQLite
  • Leaflet
Live
skipol.pl

Problem

The old portal ran on custom PHP with no off-the-shelf CMS, and the editors and bloggers publish every day. The new site had to rebuild the editorial panel with its editor and keep URLs that have lived in Google and on forums for years.

What I built

  • Content migration: 11,517 posts, 19,183 comments, 6,055 tags and galleries from 2007⁠-⁠2026.
  • Public site: articles, forum, galleries, race calendar, rankings, results and search.
  • Editorial panel: articles, comment moderation, accounts, files, calendar, stats and a change log.
  • Ski trail map: readers submit trails, the GPX track is trimmed in the browser, editors approve.
  • Custom page view counter with a bot filter.

By the numbers

old URLs redirected
37,085
URLs in the old site snapshot, 0 errors
58,812
URLs in the sitemap
16,552
commits since July 2026
438

Decisions that mattered

Not a single character lost

Content is stored as raw HTML from the old site snapshot, with metadata next to it. A script counts the inventory from the database, so the migration status comes from data, not from a checklist.

37 thousand redirects on every build

A script generates the map of old URLs before each build. Links from Google, forums and social media land on the new pages instead of a 404.

Odd page views were bots

The client asked about view counts that did not add up. Server logs showed traffic from network AS4837 posing as Chrome 99. The counter got a filter, and the client got an answer backed by data.