From 2518db8fc59fff0bfacd937bd9bfcfacfcc32493 Mon Sep 17 00:00:00 2001 From: iOdiO89 <117376841+iOdiO89@users.noreply.github.com> Date: Sun, 23 Jun 2024 19:48:05 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20bask=20path=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- next.config.js | 8 ++++++++ package.json | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/next.config.js b/next.config.js index 7df6e95..9801fba 100644 --- a/next.config.js +++ b/next.config.js @@ -1,4 +1,10 @@ /** @type {import('next').NextConfig} */ + +const prefix = + process.env.NODE_ENV === "production" + ? "https://team-ollie.github.io/WeCare-FE" + : ""; + const nextConfig = { images: { domains: ["image.tmdb.org"], @@ -16,6 +22,8 @@ const nextConfig = { }, output: "export", distDir: "dist", + basePath: prefix, + trailingSlash: true, }; module.exports = nextConfig; diff --git a/package.json b/package.json index 2e29972..e90f9b0 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "wecare-fe", "version": "0.1.0", "private": true, - "homepage": "https://team-ollie.github.io/WeCare-FE/home", + "homepage": "https://team-ollie.github.io/WeCare-FE/home/", "scripts": { "dev": "next dev", "build": "next build",