提交 a65b08bc 作者: ZhangLingKun

测试:测试推送部署

上级 adb04e07
流水线 #7218 已通过 于阶段
in 4 分 21 秒
...@@ -23,11 +23,11 @@ COPY . . ...@@ -23,11 +23,11 @@ COPY . .
RUN echo "PROFILES_ACTIVE=${PROFILES_ACTIVE}" RUN echo "PROFILES_ACTIVE=${PROFILES_ACTIVE}"
# RUN yarn build && yarn install --production --ignore-scripts --prefer-offline # RUN yarn build && yarn install --production --ignore-scripts --prefer-offline
RUN \ #RUN \
if [ "${PROFILES_ACTIVE}" = "development" ]; then echo "env PROFILES_ACTIVE=development. exec yarn run build:dev" && yarn run build:dev; \ # if [ "${PROFILES_ACTIVE}" = "development" ]; then echo "env PROFILES_ACTIVE=development. exec yarn run build:dev" && yarn run build:dev; \
else echo "env PROFILES_ACTIVE !=development. exec yarn run build" && yarn run build; \ # else echo "env PROFILES_ACTIVE !=development. exec yarn run build" && yarn run build; \
fi # fi
RUN #yarn run build:dev RUN yarn run build
# Production image, copy all the files and run next # Production image, copy all the files and run next
FROM base AS runner FROM base AS runner
......
/** @type {import('next').NextConfig} */ /** @type {import('next').NextConfig} */
const nextConfig = { const nextConfig = {
distDir: process.env.NODE_ENV === 'production' ? '.next' : '.dev',
reactStrictMode: false, reactStrictMode: false,
compilerOptions: { compilerOptions: {
types: ['@types/styled-components'], types: ['@types/styled-components'],
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论