mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
33 lines
877 B
JavaScript
33 lines
877 B
JavaScript
// import { fileURLToPath } from 'node:url';
|
|
// import bundleAnalyzer from '@next/bundle-analyzer';
|
|
// import { withContentlayer } from 'next-contentlayer';
|
|
const { fileURLToPath } = require('node:url');
|
|
const bundleAnalyzer = require('@next/bundle-analyzer');
|
|
const { withContentlayer } = require('next-contentlayer');
|
|
|
|
const withBundleAnalyzer = bundleAnalyzer({
|
|
enabled: process.env.ANALYZE === 'true',
|
|
});
|
|
|
|
module.exports = withContentlayer(
|
|
withBundleAnalyzer({
|
|
reactStrictMode: true,
|
|
eslint: {
|
|
ignoreDuringBuilds: true,
|
|
},
|
|
// Until Next.js fixes their type issues
|
|
typescript: {
|
|
ignoreBuildErrors: true,
|
|
},
|
|
experimental: {
|
|
appDir: true,
|
|
fallbackNodePolyfills: false,
|
|
},
|
|
images: {
|
|
dangerouslyAllowSVG: true,
|
|
contentDispositionType: 'attachment',
|
|
contentSecurityPolicy: "default-src 'self'; frame-src 'none'; sandbox;",
|
|
},
|
|
}),
|
|
);
|