From 664ce3e6369b3ae306735f55aa2ac66a8d8654d9 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sat, 16 Jan 2021 12:31:56 +0100 Subject: backend proxy werkt :tada: --- next.config.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 next.config.js (limited to 'next.config.js') diff --git a/next.config.js b/next.config.js new file mode 100644 index 0000000..e70331f --- /dev/null +++ b/next.config.js @@ -0,0 +1,10 @@ +module.exports = { + async rewrites() { + return [ + { + source: '/api/:path*', + destination: 'http://localhost:5000/:path*' + }, + ] + }, +} -- cgit v1.2.3