Next.js Rewrite
Map Gateway
This repository now includes a modern Next.js application with App Router pages and server-side route handlers for WMS, TMS, admin reporting, and cache-backed tile delivery.
Gateway Routes
WMS requests are served from /wms/[map] or /wms/[map]/[authKey]. TMS tiles are served from /tms/[tileset]/[z]/[x]/[y].[format]?key=....
Legacy Compatibility
Connection settings now live in environment variables instead of hard-coded server constants, and the service is organized as a single Next.js codebase.