mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
25 lines
729 B
JavaScript
25 lines
729 B
JavaScript
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
// import bundleAnalyzer from '@next/bundle-analyzer';
|
|
// import { withContentlayer } from 'next-contentlayer';
|
|
const bundleAnalyzer = require('@next/bundle-analyzer');
|
|
const { withContentlayer } = require('next-contentlayer');
|
|
|
|
const withBundleAnalyzer = bundleAnalyzer({
|
|
enabled: process.env.ANALYZE === 'true',
|
|
});
|
|
|
|
module.exports = withBundleAnalyzer(
|
|
withContentlayer({
|
|
reactStrictMode: true,
|
|
experimental: {
|
|
appDir: true,
|
|
},
|
|
images: {
|
|
dangerouslyAllowSVG: true,
|
|
contentDispositionType: 'attachment',
|
|
contentSecurityPolicy: "default-src 'self'; frame-src 'none'; sandbox;",
|
|
},
|
|
}),
|
|
);
|