From e7bafadcd35e9a3777707a035415ec652fe5f870 Mon Sep 17 00:00:00 2001 From: jundm Date: Sun, 24 Apr 2022 10:21:28 +0900 Subject: [PATCH] feat:set a proxy --- frontend/next.config.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/frontend/next.config.js b/frontend/next.config.js index 45325a1..1d83b3e 100644 --- a/frontend/next.config.js +++ b/frontend/next.config.js @@ -46,3 +46,14 @@ module.exports = { return config; }, }; + +module.exports = { + async rewrites() { + return [ + { + source: "/:path*", + destination: "https://backend.sef.today/:path*", // Proxy to Backend + }, + ]; + }, +};