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} */
|
/** @type {import('next').NextConfig} */
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
|
|
||||||
module.exports = {reactStrictMode: true,
|
module.exports = {
|
||||||
|
reactStrictMode: true,
|
||||||
sassOptions: {
|
sassOptions: {
|
||||||
prependData: '@import "variables";',
|
prependData: '@import "variables";',
|
||||||
includePaths: [path.join(__dirname, 'styles')],
|
includePaths: [path.join(__dirname, 'styles')],
|
||||||
},
|
},
|
||||||
|
async rewrites() {
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
source: '/',
|
||||||
|
destination: '/new'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
webpack(config) {
|
webpack(config) {
|
||||||
config.module.rules.push({
|
config.module.rules.push({
|
||||||
test: /\.svg$/,
|
test: /\.svg$/,
|
||||||
|
|
@ -18,4 +27,3 @@ module.exports = {reactStrictMode: true,
|
||||||
return config;
|
return config;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue