chore: format
This commit is contained in:
@@ -1,57 +1,57 @@
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
output: 'export',
|
||||
reactStrictMode: true,
|
||||
|
||||
// Next.js 15 uses turbopack by default for dev
|
||||
// No need to explicitly enable swcMinify anymore
|
||||
|
||||
// Optimize production build
|
||||
compiler: {
|
||||
removeConsole: process.env.NODE_ENV === 'production',
|
||||
},
|
||||
output: "export",
|
||||
reactStrictMode: true,
|
||||
|
||||
// Image optimization
|
||||
images: {
|
||||
formats: ['image/avif', 'image/webp'],
|
||||
},
|
||||
// Next.js 15 uses turbopack by default for dev
|
||||
// No need to explicitly enable swcMinify anymore
|
||||
|
||||
// Headers for security
|
||||
async headers() {
|
||||
return [
|
||||
{
|
||||
source: '/:path*',
|
||||
headers: [
|
||||
{
|
||||
key: 'X-DNS-Prefetch-Control',
|
||||
value: 'on'
|
||||
},
|
||||
{
|
||||
key: 'X-Frame-Options',
|
||||
value: 'SAMEORIGIN'
|
||||
},
|
||||
{
|
||||
key: 'X-Content-Type-Options',
|
||||
value: 'nosniff'
|
||||
},
|
||||
{
|
||||
key: 'Referrer-Policy',
|
||||
value: 'origin-when-cross-origin'
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
// Optimize production build
|
||||
compiler: {
|
||||
removeConsole: process.env.NODE_ENV === "production",
|
||||
},
|
||||
|
||||
// Enable experimental features if needed
|
||||
experimental: {
|
||||
// turbo is now stable in Next.js 15
|
||||
// Add other experimental features here if needed
|
||||
},
|
||||
// Image optimization
|
||||
images: {
|
||||
formats: ["image/avif", "image/webp"],
|
||||
},
|
||||
|
||||
turbopack: {
|
||||
root: '.'
|
||||
}
|
||||
}
|
||||
// Headers for security
|
||||
async headers() {
|
||||
return [
|
||||
{
|
||||
source: "/:path*",
|
||||
headers: [
|
||||
{
|
||||
key: "X-DNS-Prefetch-Control",
|
||||
value: "on",
|
||||
},
|
||||
{
|
||||
key: "X-Frame-Options",
|
||||
value: "SAMEORIGIN",
|
||||
},
|
||||
{
|
||||
key: "X-Content-Type-Options",
|
||||
value: "nosniff",
|
||||
},
|
||||
{
|
||||
key: "Referrer-Policy",
|
||||
value: "origin-when-cross-origin",
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
},
|
||||
|
||||
export default nextConfig
|
||||
// Enable experimental features if needed
|
||||
experimental: {
|
||||
// turbo is now stable in Next.js 15
|
||||
// Add other experimental features here if needed
|
||||
},
|
||||
|
||||
turbopack: {
|
||||
root: ".",
|
||||
},
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
|
||||
Reference in New Issue
Block a user