refactor active account and clean up

This commit is contained in:
Ren Amamiya
2023-03-31 16:06:40 +07:00
parent c7e2b9430a
commit 5b88b335a1
15 changed files with 101 additions and 490 deletions

View File

@@ -1,6 +1,8 @@
const removeImports = require('next-remove-imports')();
/**
* @type {import('next').NextConfig}
*/
module.exports = removeImports({
const nextConfig = {
reactStrictMode: false,
swcMinify: true,
images: {
@@ -9,11 +11,10 @@ module.exports = removeImports({
typescript: {
ignoreBuildErrors: true,
},
experimental: {
scrollRestoration: true,
},
webpack: (config) => {
config.experiments = { ...config.experiments, topLevelAwait: true };
return config;
},
});
};
module.exports = nextConfig;