diff --git a/next.config.js b/next.config.js index fbffc9ab..9bc30202 100644 --- a/next.config.js +++ b/next.config.js @@ -11,6 +11,7 @@ const nextConfig = { return config; }, cacheHandler: require.resolve('next/dist/server/lib/incremental-cache/file-system-cache.js'), + productionBrowserSourceMaps: true, }; module.exports = nextConfig; diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 297a60a6..057cf8e1 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -2,6 +2,7 @@ import '@/styles/globals.css'; import clsx from 'clsx'; import { Metadata, Viewport } from 'next'; +import { headers } from 'next/headers'; import Script from 'next/script'; import { CookieConsentPopup } from '@/components/Analytics/CookieConsentPopup'; @@ -26,9 +27,6 @@ export const metadata: Metadata = { apple: { url: '/favicon/apple-touch-icon.png', sizes: '180x180' }, }, manifest: '/favicon/site.webmanifest', - appleWebApp: { - title: 'HungerMap', - }, keywords: siteConfig.keywords, // may not be used by search engines but its good to have openGraph: { title: siteConfig.name, @@ -74,11 +72,12 @@ export const viewport: Viewport = { }; export default function RootLayout({ children }: { children: React.ReactNode }) { + const nonce = headers().get('x-nonce'); return ( {/* JSON-LD Structured Data */} - {/* Google Analytics Script */} -