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:
+1
-1
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user