Rewrite / to /new

This commit is contained in:
Justin Edmund 2022-01-31 20:46:57 -08:00
parent c4ad493831
commit ade50a04e5

View file

@ -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;
},
};