Skip to content

Commit a5f3ae3

Browse files
committed
Merge branch 'main' into fix/code-ql
2 parents b1c548e + 3cb98c0 commit a5f3ae3

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ build
33
.github
44
.husky
55
.env
6+
7+
# Local Netlify folder
8+
.netlify

example/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"scripts": {
66
"dev": "next dev",
77
"build": "next build",
8+
"build:ci": "NEXT_PUBLIC_UPLOADCARE_APP_BASE_URL=$DEPLOY_PRIME_URL NODE_ENV=production next build",
89
"start": "next start",
910
"lint": "next lint"
1011
},

src/utils/loader.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ export function uploadcareLoader({
109109

110110
// Return the relative url AS IS if the base path is not set.
111111
if (!isBasePathSet) {
112+
console.warn(
113+
'Env variable "NEXT_PUBLIC_UPLOADCARE_APP_BASE_URL" is not set. You should set it to be able to serve local images.'
114+
);
112115
return src;
113116
}
114117

0 commit comments

Comments
 (0)