32 lines
No EOL
613 B
JavaScript
32 lines
No EOL
613 B
JavaScript
/**
|
|
* @type {import('next').NextConfig}
|
|
**/
|
|
module.exports = {
|
|
async redirects() {
|
|
return [
|
|
{
|
|
source: '/',
|
|
destination: '/dashboard',
|
|
permanent: true,
|
|
},
|
|
];
|
|
},
|
|
webpack(config) {
|
|
config.module.rules.push({
|
|
test: /\.svg$/,
|
|
use: ['@svgr/webpack'],
|
|
});
|
|
|
|
return config;
|
|
},
|
|
images: {
|
|
domains: [
|
|
// For sharex icon in manage user
|
|
'getsharex.com',
|
|
// For flameshot icon, and maybe in the future other stuff from github
|
|
'raw.githubusercontent.com',
|
|
],
|
|
},
|
|
poweredByHeader: false,
|
|
reactStrictMode: true,
|
|
}; |