From b00cc58c0ebcf39b58eaae6bd38372ab5da95118 Mon Sep 17 00:00:00 2001 From: Chika Date: Fri, 30 Sep 2022 14:29:45 +0300 Subject: [PATCH] next.config.js: pass basePath from env --- Dockerfile | 1 + next.config.js | 1 + 2 files changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index d1743e8..ebd73d8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,6 +16,7 @@ WORKDIR /app COPY --from=deps /app/node_modules ./node_modules COPY . . +ARG NEXT_PUBLIC_BASE_PATH ARG NEXT_PUBLIC_COLOR_PRIMARY ARG NEXT_PUBLIC_COLOR_SECONDARY ARG NEXT_PUBLIC_COLOR_TERTIARTY diff --git a/next.config.js b/next.config.js index a05c537..af96319 100644 --- a/next.config.js +++ b/next.config.js @@ -6,6 +6,7 @@ const withGraphQL = require('next-plugin-graphql'); /** @type {import('next').NextConfig} */ const nextConfig = { + basePath: process.env.NEXT_PUBLIC_BASE_PATH, output: 'standalone', swcMinify: true, reactStrictMode: true,