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 20
20
containers :
21
21
- name : peerprep-fe
22
22
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
24
24
ports :
25
25
- containerPort : 3000
26
26
envFrom :
Original file line number Diff line number Diff line change 20
20
containers :
21
21
- name : question-svc
22
22
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
24
24
ports :
25
25
- containerPort : 4001
26
26
envFrom :
Original file line number Diff line number Diff line change 20
20
containers :
21
21
- name : user-svc
22
22
image : asia-southeast1-docker.pkg.dev/cs3219-g11-peerprep/cs3219-g11-repo/user-svc:latest
23
+ imagePullPolicy : Always
23
24
ports :
24
25
- containerPort : 3001
25
26
envFrom :
Original file line number Diff line number Diff line change 1
1
import { NextResponse } from 'next/server' ;
2
2
import type { NextRequest } from 'next/server' ;
3
3
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' ;
5
6
6
7
// This function can be marked `async` if using `await` inside
7
8
export async function middleware ( request : NextRequest ) {
Original file line number Diff line number Diff line change @@ -10,11 +10,11 @@ RUN npm install -g pnpm
10
10
# Copy package.json and pnpm-lock.yaml
11
11
COPY package.json ./
12
12
13
+ RUN pnpm install
14
+
13
15
# Development stage
14
16
FROM base AS development
15
17
16
- RUN pnpm install
17
-
18
18
COPY . .
19
19
20
20
# Note: Don't expose ports here, Compose will handle that for us
@@ -27,9 +27,6 @@ FROM base AS production
27
27
ENV NODE_ENV=production
28
28
ENV PORT=3001
29
29
30
- # install without dev dependencies
31
- RUN pnpm install --prod
32
-
33
30
COPY . .
34
31
35
32
EXPOSE ${PORT}
You can’t perform that action at this time.
0 commit comments