Skip to content

Commit

Permalink
fix: make image domain configurable via env
Browse files Browse the repository at this point in the history
  • Loading branch information
shadcn committed Feb 1, 2021
1 parent c4d34b2 commit 9b66159
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions examples/example-blog/.env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
NEXT_PUBLIC_DRUPAL_BASE_URL=http://localhost:8080
NEXT_IMAGE_DOMAIN=localhost
DRUPAL_CLIENT_ID=1a3510bc-a367-4f40-a1dd-6756454f6b69
DRUPAL_CLIENT_SECRET=Fy2crmgK44PwlBDjvA54m7m7ucvhj837
DRUPAL_PREVIEW_SECRET=secret
2 changes: 1 addition & 1 deletion examples/example-blog/next.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
images: {
domains: ["localhost"],
domains: [process.env.NEXT_IMAGE_DOMAIN],
},
}
1 change: 1 addition & 0 deletions examples/example-marketing/.env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
NEXT_PUBLIC_DRUPAL_BASE_URL=http://localhost:8080
NEXT_IMAGE_DOMAIN=localhost
DRUPAL_CLIENT_ID=15cea0a1-1f8d-4595-acec-2c1420f06a5d
DRUPAL_CLIENT_SECRET=SA9AGbHnx6pOamaAus2f9LG9XudHFjKs
DRUPAL_PREVIEW_SECRET=secret
Expand Down
2 changes: 1 addition & 1 deletion examples/example-marketing/next.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
images: {
domains: ["localhost"],
domains: [process.env.NEXT_IMAGE_DOMAIN],
},
}

0 comments on commit 9b66159

Please sign in to comment.