On this page9
Part of my work on Joomla to Nuxt migration. By Mohammad Javad Dastouri, full-stack and AI engineer.
The engineering behind the migration: how one resolver kept the old addresses working on a completely new stack.
At a glance
- Area
- Web platforms and migration
- My role
- Sole engineer: design, build, deploy and run
- Built with
- Nuxt 3, Vue 3, Express, MySQL 8, Redis, Nginx, PM2, Sharp
- Area
- Web platforms and migration
- My role
- Sole engineer: design, build, deploy and run
- Built with
- Nuxt 3, Vue 3, Express, MySQL 8, Redis, Nginx, PM2, Sharp
What it covers
Routing
One resolver for every public address
Rendering
Full HTML in the first response
Structured data
Shared code for every content type
Speed and safety
Caching, image delivery and protected forms
Routing
One resolver for every public address
Rendering
Full HTML in the first response
Structured data
Shared code for every content type
Speed and safety
Caching, image delivery and protected forms
Addresses as a production contract
A single Nuxt catch-all route takes every incoming path.
It passes the path to a resolver built on the migrated menu.
The resolver decides whether the path is a category, an article or a short alias.
It returns the content with its canonical address.
A single Nuxt catch-all route takes every incoming path.
It passes the path to a resolver built on the migrated menu.
The resolver decides whether the path is a category, an article or a short alias.
It returns the content with its canonical address.
In practice:
New content
inherits the correct path from the menu, with no routing code.
Canonicals
come from one source, which avoids duplicate pages.
Old prefix
the historical language prefix is normalised away.
New content
inherits the correct path from the menu, with no routing code.
Canonicals
come from one source, which avoids duplicate pages.
Old prefix
the historical language prefix is normalised away.
One rule that protects the addresses
The menu API is the single source for navigation and category links. The categories endpoint looks similar but does not carry the preserved addresses.
I made this a written project rule, because a later developer could easily reach for the wrong one and break addresses without noticing.
Server rendering
Product and category content is in the first HTML response, including structured data.
Vendor code
split into separate bundles.
Public assets
precompressed.
Routes
each has its own cache rules.
Hydration
delayed for non-critical parts, to protect Core Web Vitals.
Vendor code
split into separate bundles.
Public assets
precompressed.
Routes
each has its own cache rules.
Hydration
delayed for non-critical parts, to protect Core Web Vitals.
Structured data as shared code
Separate composables produce schema for articles, categories, products, images, video, navigation, local business and pages, coordinated by one orchestrator.
Inline markup is quicker for the first few pages, but it does not hold up across several hundred.
Caching and images
Redis
a get-or-set layer with configurable lifetimes keeps repeat reads off MySQL.
Sharp
automated WebP conversion and responsive resizing.
Delivery
Express middleware serves WebP to browsers that support it, with no markup changes.
Hosting
Nginx terminates TLS, and PM2 supervises both processes.
Redis
a get-or-set layer with configurable lifetimes keeps repeat reads off MySQL.
Sharp
automated WebP conversion and responsive resizing.
Delivery
Express middleware serves WebP to browsers that support it, with no markup changes.
Hosting
Nginx terminates TLS, and PM2 supervises both processes.
Protecting the enquiry forms
Express boundary
security headers, CORS, rate limits and input sanitising.
Admin routes
need a JWT.
Passwords
use bcrypt.
Public forms
use Cloudflare Turnstile.
Express boundary
security headers, CORS, rate limits and input sanitising.
Admin routes
need a JWT.
Passwords
use bcrypt.
Public forms
use Cloudflare Turnstile.
Enquiries are saved to the database before any notification is attempted, so an outside service failing cannot lose a sales lead.
Hiring someone to run production?
Tell me about the role, or go back to the project: the project this engineering delivered.
- Section
- Web platforms and migration
- Updated
- November 9, 2026
- Reading time
- 2 min read
Hiring for this kind of work?
Tell me about the role and I will reply by email.
Discuss a role with me
