File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 3
3
.github
4
4
.husky
5
5
.env
6
+
7
+ # Local Netlify folder
8
+ .netlify
Original file line number Diff line number Diff line change 5
5
"scripts" : {
6
6
"dev" : " next dev" ,
7
7
"build" : " next build" ,
8
+ "build:ci" : " NEXT_PUBLIC_UPLOADCARE_APP_BASE_URL=$DEPLOY_PRIME_URL NODE_ENV=production next build" ,
8
9
"start" : " next start" ,
9
10
"lint" : " next lint"
10
11
},
Original file line number Diff line number Diff line change @@ -109,6 +109,9 @@ export function uploadcareLoader({
109
109
110
110
// Return the relative url AS IS if the base path is not set.
111
111
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
+ ) ;
112
115
return src ;
113
116
}
114
117
You can’t perform that action at this time.
0 commit comments