Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove headers #54

Merged
merged 1 commit into from
May 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
Loading