/** @type {import('next').NextConfig} */
const nextConfig = {
  images: {
    remotePatterns: [
      {
        protocol: 'http',
        hostname: 'api.museujardimbotanico.org.br',
        port: '',
        pathname: '/uploads/**',
      },
    ],
  },

  async redirects() {
    return [
      {
        source: '/:lang/app',
        destination: '/:lang',
        permanent: true,
      },
    ]
  },
};

module.exports = nextConfig
