Skip to content

Commit

Permalink
去掉NODE_ENV = production,修改安装pnpm方式
Browse files Browse the repository at this point in the history
  • Loading branch information
pddzl committed Jul 4, 2023
1 parent 903d758 commit b716531
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions web/.env.production
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# 请勿改动这一项,该项也不可以通过 import.meta.env.NODE_ENV 调用
NODE_ENV = production

# 下面是自定义的环境变量,可以修改(命名必须以 VITE_ 开头)

## 后端接口公共路径(如果解决跨域问题采用 CORS 就需要写全路径)
Expand Down
2 changes: 1 addition & 1 deletion web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM node:17
WORKDIR /web
COPY . .

RUN npm install pnpm -g
RUN npm install pnpm --location=global

RUN pnpm i && pnpm build:prod

Expand Down

0 comments on commit b716531

Please sign in to comment.