From 64e21388be13896d19cdd1c2cd73aba4f1f0b48b Mon Sep 17 00:00:00 2001 From: "Kalle (Sendou)" <38327916+Sendouc@users.noreply.github.com> Date: Fri, 20 Nov 2020 12:12:48 +0200 Subject: [PATCH] redirect test --- next.config.js | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/next.config.js b/next.config.js index b79b09d34..6772c1d59 100644 --- a/next.config.js +++ b/next.config.js @@ -1,2 +1,16 @@ const withImages = require("next-images"); -module.exports = withImages(); +module.exports = withImages({ + async rewrites() { + return [ + // check if Next.js project routes match before we attempt proxying + { + source: "/:path*", + destination: "/:path*", + }, + { + source: "/:path*", + destination: `https://sendou-ink.herokuapp.com/:path*`, + }, + ]; + }, +});