create-nextblock 0.9.62 → 0.9.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/create-nextblock.js
CHANGED
|
@@ -2099,6 +2099,15 @@ function buildNextConfigContent(editorUtilNames) {
|
|
|
2099
2099
|
'function getRemotePatterns() {',
|
|
2100
2100
|
' /** @type {Array<{ protocol: "http" | "https", hostname: string, pathname: string }>} */',
|
|
2101
2101
|
' const patterns = [];',
|
|
2102
|
+
' // Storage providers allowlisted by wildcard so next/image works on a fresh install',
|
|
2103
|
+
' // WITHOUT a dev-server restart: next.config.js is read once at startup, before the',
|
|
2104
|
+
' // /setup wizard writes the R2 env, so the exact env-derived hosts below would be',
|
|
2105
|
+
' // missing until a restart. Custom domains are still picked up from env below.',
|
|
2106
|
+
' patterns.push(',
|
|
2107
|
+
" { protocol: 'https', hostname: '**.r2.dev', pathname: '/**' },",
|
|
2108
|
+
" { protocol: 'https', hostname: '**.r2.cloudflarestorage.com', pathname: '/**' },",
|
|
2109
|
+
" { protocol: 'https', hostname: '**.supabase.co', pathname: '/**' },",
|
|
2110
|
+
' );',
|
|
2102
2111
|
' // Whitelist this project R2 public/base URLs and the site URL for next/image.',
|
|
2103
2112
|
' const sources = [',
|
|
2104
2113
|
' process.env.NEXT_PUBLIC_R2_PUBLIC_URL,',
|
package/package.json
CHANGED