refactor: rename website to docs

This commit is contained in:
Daniel Lautzenheiser
2022-12-06 09:49:54 -05:00
parent 08e1b60297
commit a5481aaece
177 changed files with 2 additions and 2 deletions

29
docs/next.config.js Normal file
View File

@ -0,0 +1,29 @@
const withPWA = require('next-pwa')({
publicExcludes: ['!bulletins/**/*'],
dest: 'public'
});
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true'
});
const redirects = [
{ source: '/chat', destination: 'https://discord.gg/ZWJM9pBMjj', permanent: true },
];
/** @type {import('next').NextConfig} */
let config = {
reactStrictMode: true,
swcMinify: true,
redirects: async () => {
return redirects;
},
}
if (process.env.NODE_ENV === 'production') {
config = withPWA(config);
} else {
config = withBundleAnalyzer(config);
}
module.exports = config