mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
34 lines
771 B
JavaScript
34 lines
771 B
JavaScript
import bundleAnalyzer from '@next/bundle-analyzer';
|
|
|
|
const withBundleAnalyzer = bundleAnalyzer({
|
|
enabled: process.env.ANALYZE === 'true',
|
|
});
|
|
|
|
export default withBundleAnalyzer({
|
|
reactStrictMode: true,
|
|
experimental: {
|
|
typedRoutes: true,
|
|
serverComponentsExternalPackages: ['@microsoft/api-extractor-model', 'jju'],
|
|
},
|
|
images: {
|
|
dangerouslyAllowSVG: true,
|
|
contentDispositionType: 'attachment',
|
|
contentSecurityPolicy: "default-src 'self'; frame-src 'none'; sandbox;",
|
|
},
|
|
poweredByHeader: false,
|
|
async redirects() {
|
|
return [
|
|
{
|
|
source: '/static/logo.svg',
|
|
destination: '/logo.svg',
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: '/guide/:path*',
|
|
destination: 'https://next.discordjs.guide/guide/:path*',
|
|
permanent: true,
|
|
},
|
|
];
|
|
},
|
|
});
|