forked from github/plane
Add $NEXT_PUBLIC_EXTRA_IMAGE_DOMAINS
to add domains for Next Image plugin
This commit is contained in:
parent
b8c06b3121
commit
ea87823478
@ -1,5 +1,6 @@
|
|||||||
# Replace with your instance Public IP
|
# Replace with your instance Public IP
|
||||||
# NEXT_PUBLIC_API_BASE_URL = "http://localhost"
|
# NEXT_PUBLIC_API_BASE_URL = "http://localhost"
|
||||||
|
NEXT_PUBLIC_EXTRA_IMAGE_DOMAINS=
|
||||||
NEXT_PUBLIC_GOOGLE_CLIENTID=""
|
NEXT_PUBLIC_GOOGLE_CLIENTID=""
|
||||||
NEXT_PUBLIC_GITHUB_APP_NAME=""
|
NEXT_PUBLIC_GITHUB_APP_NAME=""
|
||||||
NEXT_PUBLIC_GITHUB_ID=""
|
NEXT_PUBLIC_GITHUB_ID=""
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
const { withSentryConfig } = require("@sentry/nextjs");
|
const { withSentryConfig } = require("@sentry/nextjs");
|
||||||
const path = require("path");
|
const path = require("path");
|
||||||
|
const extraImageDomains = (process.env.NEXT_PUBLIC_EXTRA_IMAGE_DOMAINS ?? "").split(",").filter((domain) => domain.length > 0);
|
||||||
|
|
||||||
const nextConfig = {
|
const nextConfig = {
|
||||||
reactStrictMode: false,
|
reactStrictMode: false,
|
||||||
@ -11,6 +12,7 @@ const nextConfig = {
|
|||||||
"planefs.s3.amazonaws.com",
|
"planefs.s3.amazonaws.com",
|
||||||
"images.unsplash.com",
|
"images.unsplash.com",
|
||||||
"avatars.githubusercontent.com",
|
"avatars.githubusercontent.com",
|
||||||
|
...extraImageDomains,
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
output: "standalone",
|
output: "standalone",
|
||||||
|
Loading…
Reference in New Issue
Block a user