Skip to content

Commit

Permalink
fix ci build, update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyYe committed Feb 17, 2024
1 parent c8bec66 commit 44c5f0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
before:
hooks:
# build the frontend project
- npm install --prefix ./web
- npm ci --prefix ./web
- npm run build --prefix ./web
# You may remove this if you don't use go modules.
- go mod tidy
Expand Down
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ FROM node:18-alpine AS web-builder
WORKDIR /web
# Copy the Next.js project files into the image
COPY ./web/package.json ./web/package-lock.json ./
ENV NEXT_USE_SWC_FALLBACK=true
# Install dependencies
RUN npm install
RUN npm install --build-from-source swc-project/node-swc
# Copy the rest of the Next.js project files
COPY ./web .
# Build the Next.js project
Expand Down

0 comments on commit 44c5f0b

Please sign in to comment.