From 1d55246cea23ddc2994de7e283ab7750ee6b43d2 Mon Sep 17 00:00:00 2001 From: DongHyeonWon Date: Wed, 7 Feb 2024 18:55:17 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20next=20config=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/next.config.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/frontend/next.config.js b/frontend/next.config.js index b6cefa3..9e34424 100644 --- a/frontend/next.config.js +++ b/frontend/next.config.js @@ -4,15 +4,15 @@ const nextConfig = { unoptimized: true, domains: ["hanroro-fanpage.s3.ap-northeast-2.amazonaws.com"], }, - // async rewrites() { - // return [ - // { - // source: "/api/:path*", - // destination: process.env.NEXT_PUBLIC_BASE_URL + "/:path*", - // }, - // ]; - // }, - output: "export", + async rewrites() { + return [ + { + source: "/api/:path*", + destination: process.env.NEXT_PUBLIC_BASE_URL + "/:path*", + }, + ]; + }, + // output: "export", trailingSlash: true, reactStrictMode: false, };