/** @type {import('next').NextConfig} */
const nextConfig = {
  distDir: process.env.NODE_ENV === 'production' ? '.next' : '.dev',
  reactStrictMode: false,
  compilerOptions: {
    types: ['@types/styled-components'],
    styledComponents: true,
  },
  styledComponents: {
    fileName: false,
    ssr: true,
  },
  redirects() {
    return [
      {
        source: '/home',
        destination: '/',
        permanent: true,
      },
    ];
  },
};

module.exports = nextConfig;
