/** @type {import('next').NextConfig} */
const nextConfig = {
  reactStrictMode: false,
  // compilerOptions: {
  //   types: ['@types/styled-components'],
  //   styledComponents: true,
  // },
  // styledComponents: {
  //   fileName: false,
  //   ssr: true,
  // },
  compiler: {
    // see https://styled-components.com/docs/tooling#babel-plugin for more info on the options.
    styledComponents: {
      ssr: true,
      fileName: false,
    },
  },
  redirects() {
    return [
      {
        source: '/home',
        destination: '/',
        permanent: true,
      },
    ];
  },
};

module.exports = nextConfig;
