mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
30 lines
790 B
JavaScript
30 lines
790 B
JavaScript
import { fileURLToPath } from 'node:url';
|
|
import bundleAnalyzer from '@next/bundle-analyzer';
|
|
|
|
const withBundleAnalyzer = bundleAnalyzer({
|
|
enabled: process.env.ANALYZE === 'true',
|
|
});
|
|
|
|
export default withBundleAnalyzer({
|
|
reactStrictMode: true,
|
|
eslint: {
|
|
ignoreDuringBuilds: true,
|
|
},
|
|
// Until Next.js fixes their type issues
|
|
typescript: {
|
|
ignoreBuildErrors: true,
|
|
},
|
|
outputFileTracing: true,
|
|
experimental: {
|
|
appDir: true,
|
|
outputFileTracingRoot: fileURLToPath(new URL('../../', import.meta.url)),
|
|
fallbackNodePolyfills: false,
|
|
serverComponentsExternalPackages: ['@microsoft/api-extractor-model', 'jju'],
|
|
},
|
|
images: {
|
|
dangerouslyAllowSVG: true,
|
|
contentDispositionType: 'attachment',
|
|
contentSecurityPolicy: "default-src 'self'; frame-src 'none'; sandbox;",
|
|
},
|
|
});
|