diff --git a/next.config.ts b/next.config.ts index 765d934..d1193f5 100644 --- a/next.config.ts +++ b/next.config.ts @@ -1,11 +1,15 @@ import type { NextConfig } from "next"; const nextConfig: NextConfig = { - async rewrites() { + rewrites() { return [ { - source: "/map-styles/:path*", - destination: "https://basemaps.cartocdn.com/gl/:path*", + source: "/map-cdn/basemaps/:path*", + destination: "https://basemaps.cartocdn.com/:path*", + }, + { + source: "/map-cdn/tiles/:path*", + destination: "https://tiles.basemaps.cartocdn.com/:path*", }, ]; }, diff --git a/src/app/layout.tsx b/src/app/layout.tsx index a78ca91..f56f6d6 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -68,20 +68,7 @@ export default function RootLayout({ suppressHydrationWarning className={`${geistSans.variable} ${geistMono.variable} h-full antialiased`} > -
- - - - - +