From ade50a04e5c3df270c8b54973f2213ef9e39a9d7 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Mon, 31 Jan 2022 20:46:57 -0800 Subject: [PATCH] Rewrite / to /new --- next.config.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/next.config.js b/next.config.js index 4e417b7f..fc60c38f 100644 --- a/next.config.js +++ b/next.config.js @@ -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; }, }; -