chore(dev): accept ddev self-signed cert in dev for next/image optimizer

بهینه‌ساز تصویر داخلی Next با fetch بومی خودش تصویر را از ddev می‌گیرد و
گواهی self-signed را رد می‌کرد (UNABLE_TO_VERIFY_LEAF_SIGNATURE روی
/_next/image). افزودن NODE_TLS_REJECT_UNAUTHORIZED=0 فقط به اسکریپت dev.
build و start production دست‌نخورده و امن می‌مانند.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
hamed
2026-06-15 00:46:43 +03:30
co-authored by Claude Opus 4.8
parent e6570e06f6
commit dc60b0a4f2
+1 -1
View File
@@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "cross-env HOST=yazd-nobat.localhost PORT=3000 next dev",
"dev": "cross-env HOST=yazd-nobat.localhost PORT=3000 NODE_TLS_REJECT_UNAUTHORIZED=0 next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"