Rewrite / to /new
This commit is contained in:
parent
c4ad493831
commit
ade50a04e5
1 changed files with 10 additions and 2 deletions
|
|
@ -1,11 +1,20 @@
|
|||
/** @type {import('next').NextConfig} */
|
||||
const path = require('path')
|
||||
|
||||
module.exports = {reactStrictMode: true,
|
||||
module.exports = {
|
||||
reactStrictMode: true,
|
||||
sassOptions: {
|
||||
prependData: '@import "variables";',
|
||||
includePaths: [path.join(__dirname, 'styles')],
|
||||
},
|
||||
async rewrites() {
|
||||
return [
|
||||
{
|
||||
source: '/',
|
||||
destination: '/new'
|
||||
}
|
||||
]
|
||||
},
|
||||
webpack(config) {
|
||||
config.module.rules.push({
|
||||
test: /\.svg$/,
|
||||
|
|
@ -18,4 +27,3 @@ module.exports = {reactStrictMode: true,
|
|||
return config;
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue