puffin-app/next.config.mjs
Matt 6b12e2ae2a
All checks were successful
Build and Push Docker Images / docker (push) Successful in 2m12s
Fix header spacing and homepage centering issues
- Changed layout padding from Tailwind pt-48 to inline style paddingTop: 110px for reliable CSS specificity
- Added negative margin to homepage hero section to maintain vertical centering
- Updated client components (About, Contact, HowItWorks) from py-12 to pb-12 for proper spacing
- All pages now have proper header clearance without content cutoff

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-02 19:13:15 +01:00

61 lines
1.3 KiB
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
// Enable React strict mode for better development experience
reactStrictMode: true,
// Output standalone for Docker deployment
output: 'standalone',
// Compiler options
compiler: {
// Remove console logs in production
removeConsole: process.env.NODE_ENV === 'production' ? {
exclude: ['error', 'warn'],
} : false,
},
// Image optimization configuration
images: {
domains: ['s3.puffinoffset.com'],
formats: ['image/avif', 'image/webp'],
},
// Headers for security and caching
async headers() {
return [
{
source: '/:path*',
headers: [
{
key: 'X-DNS-Prefetch-Control',
value: 'on'
},
{
key: 'X-Frame-Options',
value: 'SAMEORIGIN'
},
],
},
];
},
// Turbopack configuration (Next.js 16 default)
turbopack: {},
// Webpack configuration for any custom needs
webpack: (config, { isServer }) => {
// Fixes npm packages that depend on node modules
if (!isServer) {
config.resolve.fallback = {
...config.resolve.fallback,
fs: false,
net: false,
tls: false,
};
}
return config;
},
};
export default nextConfig;