mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
35 lines
615 B
JavaScript
35 lines
615 B
JavaScript
/**
|
|
* @type {import('next').NextConfig}
|
|
*/
|
|
export default {
|
|
reactStrictMode: true,
|
|
images: {
|
|
dangerouslyAllowSVG: true,
|
|
contentDispositionType: 'attachment',
|
|
contentSecurityPolicy: "default-src 'self'; frame-src 'none'; sandbox;",
|
|
},
|
|
logging: {
|
|
fetches: {
|
|
fullUrl: true,
|
|
},
|
|
},
|
|
experimental: {
|
|
ppr: true,
|
|
reactCompiler: true,
|
|
},
|
|
async redirects() {
|
|
return [
|
|
{
|
|
source: '/static/logo.svg',
|
|
destination: '/logo.svg',
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: '/guide/:path*',
|
|
destination: 'https://next.discordjs.guide/guide/:path*',
|
|
permanent: true,
|
|
},
|
|
];
|
|
},
|
|
};
|