nextjs-loader icon indicating copy to clipboard operation
nextjs-loader copied to clipboard

Vercel preview is not supported

Open kylemorena opened this issue 1 year ago • 0 comments

Describe the bug

I'm facing this warning Env variable "NEXT_PUBLIC_UPLOADCARE_APP_BASE_URL" is not set. You should set it to be able to serve local images.

This is my component:


import Image from "next/image";

<Image
	src={"/static/my-image.jpg"}
	alt="test"
	width={200}
	height={200}
/>

The problem is that Vercel for previews generates dynamic domains, so how can I set my NEXT_PUBLIC_UPLOADCARE_APP_BASE_URL with the current domain like https://frontend-main-github-integration-dynamic-cesarine.vercel.app?

Environment

  • Language/framework version: "next": "^14.2.2"

Thanks in advance!

Kyle

kylemorena avatar Aug 01 '24 15:08 kylemorena