redirect test

This commit is contained in:
Kalle (Sendou)
2020-11-20 12:12:48 +02:00
parent 7f17f1957e
commit 64e21388be

View File

@@ -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*`,
},
];
},
});