bbuddy-ui/next.config.js

41 lines
737 B
JavaScript

// @ts-check
const withNextIntl = require('next-intl/plugin')();
const path = require('path');
/** @type {import('next').NextConfig} */
const nextConfig = {
compiler: {
styledComponents: {
ssr: true,
displayName: true,
namespace: 'bbuddy'
}
},
sassOptions: {
includePaths: [path.join(__dirname, 'styles')],
},
images: {
unoptimized: true
},
experimental: {
taint: true,
typedRoutes: true
},
output: 'export',
distDir: 'dist',
poweredByHeader: false,
productionBrowserSourceMaps: true,
trailingSlash: true
// redirects: async () => {
// return [
// {
// source: '/en/',
// destination: '/en.html',
// permanent: true
// }
// ]
// }
};
module.exports = withNextIntl(nextConfig);