mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
40 lines
719 B
TypeScript
40 lines
719 B
TypeScript
import type { NextConfig } from 'next';
|
|
|
|
export default {
|
|
images: {
|
|
dangerouslyAllowSVG: true,
|
|
contentDispositionType: 'attachment',
|
|
contentSecurityPolicy: "default-src 'self'; frame-src 'none'; sandbox;",
|
|
remotePatterns: [
|
|
{
|
|
protocol: 'http',
|
|
hostname: 'localhost',
|
|
},
|
|
],
|
|
},
|
|
poweredByHeader: false,
|
|
logging: {
|
|
fetches: {
|
|
fullUrl: true,
|
|
},
|
|
},
|
|
reactCompiler: true,
|
|
typescript: {
|
|
ignoreBuildErrors: true,
|
|
},
|
|
async redirects() {
|
|
return [
|
|
{
|
|
source: '/static/logo.svg',
|
|
destination: '/logo.svg',
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: '/guide/:path*',
|
|
destination: 'https://discordjs.guide/:path*',
|
|
permanent: false,
|
|
},
|
|
];
|
|
},
|
|
} satisfies NextConfig;
|