Skip to content

Commit

Permalink
Remove headers
Browse files Browse the repository at this point in the history
  • Loading branch information
patelvivekdev committed May 5, 2024
1 parent 584558e commit 79d175f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 20 deletions.
4 changes: 2 additions & 2 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ export default function RootLayout({
children: React.ReactNode;
}>) {
return (
<html lang='en'>
<html lang='en' suppressHydrationWarning>
<head>
<Script defer src='https://us.umami.is/script.js' data-website-id='aa7603cb-3e5d-474c-b1a5-f92e18751e5c' />
</head>
<body className={cn('mx-auto font-sans antialiased bg-neutral-100 dark:bg-neutral-900 ', fontSans.variable)}>
<ThemeProvider attribute='class' defaultTheme='system' enableSystem={true}>
<ThemeProvider attribute='class' defaultTheme='system' enableSystem={true} disableTransitionOnChange>
<Navbar />
<main>{children}</main>
<SpeedInsights />
Expand Down
1 change: 1 addition & 0 deletions components/ThemeToggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export function ThemeToggle() {
useEffect(() => {
setLoaded(true);
}, [setLoaded]);

return (
<button
aria-label='Toggle Dark Mode'
Expand Down
36 changes: 18 additions & 18 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -59,25 +59,25 @@ const nextConfig = {
},
];
},
headers() {
return [
{
source: '/(.*)',
headers: securityHeaders,
},
];
},
// headers() {
// return [
// {
// source: '/(.*)',
// headers: securityHeaders,
// },
// ];
// },
};

const securityHeaders = [
{
key: 'X-DNS-Prefetch-Control',
value: 'on',
},
{
key: 'Strict-Transport-Security',
value: 'max-age=31536000; includeSubDomains; preload',
},
];
// const securityHeaders = [
// {
// key: 'X-DNS-Prefetch-Control',
// value: 'on',
// },
// {
// key: 'Strict-Transport-Security',
// value: 'max-age=31536000; includeSubDomains; preload',
// },
// ];

export default nextConfig;

0 comments on commit 79d175f

Please sign in to comment.