refactor: monorepo setup with lerna (#243)

This commit is contained in:
Daniel Lautzenheiser
2022-12-15 13:44:49 -05:00
committed by GitHub
parent dac29fbf3c
commit 504d95c34f
706 changed files with 16571 additions and 142 deletions

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