Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vercel preview is not supported #37

Open
kylemorena opened this issue Aug 1, 2024 · 0 comments
Open

Vercel preview is not supported #37

kylemorena opened this issue Aug 1, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@kylemorena
Copy link

kylemorena commented Aug 1, 2024

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 kylemorena added the bug Something isn't working label Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant