Open zhang1zh opened 2 months ago
目前Dockerfile里只支持了 NOTION_PAGE_ID 这一环境变量
ARG NOTION_PAGE_ID
# Install dependencies only when needed
FROM node:18-alpine3.18 AS deps
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
RUN apk add --no-cache libc6-compat
WORKDIR /app
COPY package.json ./
RUN yarn install --frozen-lockfile
# Rebuild the source code only when needed
FROM node:18-alpine3.18 AS builder
ARG NOTION_PAGE_ID
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .
RUN yarn build
ENV NODE_ENV production
EXPOSE 3000
# Next.js collects completely anonymous telemetry data about general usage.
# Learn more here: https://nextjs.org/telemetry
# Uncomment the following line in case you want to disable telemetry.
# ENV NEXT_TELEMETRY_DISABLED 1
CMD ["yarn", "start"]
同样的问题,修改环境变量后直接把默认的主题覆盖在了指定变量的主题上了,并没有切换,还是默认的主题。
最新提交中增加了 NEXT_PUBLIC_THEME的支持 https://github.com/tangly1024/NotionNext/commit/d0a4acd5c34ee0e78ef507ff784d046bcb7c1fb4
描述遇到的问题 通过docker部署notionnext设置主题环境变量NEXT_PUBLIC_THEME无作用
相应配置 docker-compose配置如下:
截图 正常应该根据环境变量中
NEXT_PUBLIC_THEME
为heo的配置,应用heo主题,但是无效果,在notion-config中配置THEME
可以环境