24 lines
No EOL
414 B
JavaScript
24 lines
No EOL
414 B
JavaScript
/**
|
|
* @type {import('next').NextConfig}
|
|
**/
|
|
module.exports = {
|
|
async redirects() {
|
|
return [
|
|
{
|
|
source: '/',
|
|
destination: '/dashboard',
|
|
permanent: true,
|
|
},
|
|
];
|
|
},
|
|
webpack(config) {
|
|
config.resolve.fallback = {
|
|
...config.resolve.fallback,
|
|
fs: false, // the solution
|
|
};
|
|
|
|
return config;
|
|
},
|
|
poweredByHeader: false,
|
|
reactStrictMode: true,
|
|
}; |