Skip to content

Commit 83a4bb5

Browse files
committed
local optimize
1 parent c37077f commit 83a4bb5

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

apps/frontend/next.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const nextConfig = {
2020
source: '/api/:path*',
2121
destination: process.env.NODE_ENV === 'production'
2222
? 'http://backend:3003/api/:path*'
23-
: 'http://localhost:3003/api/:path*',
23+
: 'http://backend:3003/api/:path*',
2424
},
2525
]
2626
},

docker-compose.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,13 @@ services:
4040
networks:
4141
- myblog-network
4242
healthcheck:
43-
test: ["CMD", "curl", "-f", "http://localhost:3003/health"]
43+
test:
44+
[
45+
"CMD",
46+
"node",
47+
"-e",
48+
"require('http').get('http://localhost:3003/health', (res) => { process.exit(res.statusCode === 200 ? 0 : 1) })",
49+
]
4450
interval: 30s
4551
timeout: 10s
4652
retries: 3

0 commit comments

Comments
 (0)