File tree Expand file tree Collapse file tree 5 files changed +7
-8
lines changed
Expand file tree Collapse file tree 5 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 2020 containers :
2121 - name : peerprep-fe
2222 image : asia-southeast1-docker.pkg.dev/cs3219-g11-peerprep/cs3219-g11-repo/peerprep-fe:latest
23- # imagePullPolicy: Never # only used for local builds
23+ imagePullPolicy : Always
2424 ports :
2525 - containerPort : 3000
2626 envFrom :
Original file line number Diff line number Diff line change 2020 containers :
2121 - name : question-svc
2222 image : asia-southeast1-docker.pkg.dev/cs3219-g11-peerprep/cs3219-g11-repo/question-svc:latest
23- # imagePullPolicy: Never # only used for local builds
23+ imagePullPolicy : Always
2424 ports :
2525 - containerPort : 4001
2626 envFrom :
Original file line number Diff line number Diff line change 2020 containers :
2121 - name : user-svc
2222 image : asia-southeast1-docker.pkg.dev/cs3219-g11-peerprep/cs3219-g11-repo/user-svc:latest
23+ imagePullPolicy : Always
2324 ports :
2425 - containerPort : 3001
2526 envFrom :
Original file line number Diff line number Diff line change 11import { NextResponse } from 'next/server' ;
22import type { NextRequest } from 'next/server' ;
33
4- const baseURL = process . env . AUTH_SERVICE_URL || 'http://172.17.0.1:3001/api/v1' ;
4+ const baseURL =
5+ process . env . NEXT_PUBLIC_AUTH_SERVICE_URL || 'http://172.17.0.1:3001/api/v1' ;
56
67// This function can be marked `async` if using `await` inside
78export async function middleware ( request : NextRequest ) {
Original file line number Diff line number Diff line change @@ -10,11 +10,11 @@ RUN npm install -g pnpm
1010# Copy package.json and pnpm-lock.yaml
1111COPY package.json ./
1212
13+ RUN pnpm install
14+
1315# Development stage
1416FROM base AS development
1517
16- RUN pnpm install
17-
1818COPY . .
1919
2020# Note: Don't expose ports here, Compose will handle that for us
@@ -27,9 +27,6 @@ FROM base AS production
2727ENV NODE_ENV=production
2828ENV PORT=3001
2929
30- # install without dev dependencies
31- RUN pnpm install --prod
32-
3330COPY . .
3431
3532EXPOSE ${PORT}
You can’t perform that action at this time.
0 commit comments