Commit 8c93c62
committed
Fix SSL certificate issue for database connections during build
- Add NODE_TLS_REJECT_UNAUTHORIZED=0 for migration and build commands only
- Keep dynamic page generation as intended (SSG with database access)
- Allows CodeBuild to connect to RDS with self-signed certificates during build phase
- Only affects build-time database connections, not runtime connections
This fixes the 'self-signed certificate in certificate chain' error that was preventing
Next.js from connecting to the database during static page generation.1 parent 035aba2 commit 8c93c62
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
0 commit comments