import createNextIntlPlugin from 'next-intl/plugin';
import type { NextConfig } from 'next';
const withNextIntl = createNextIntlPlugin();
/** @type {NextConfig} */
const nextConfig: NextConfig = {
  output: 'standalone',
  images: {
    unoptimized: true
  },
 /* async redirects() {
   return [
      {
        source: '/',
        destination: '/fr',
        permanent: true,
      },
    ]
  },*/
  webpack(config) {
    config.module.rules.push({
      test: /\.svg$/i,
      use: ['@svgr/webpack'],
    });
    return config;
  },
};
// Export the raw config for access to basePath
export const config = nextConfig;
// Export the wrapped config as default for Next.js
export default withNextIntl(nextConfig);
