Skip to content

Vercel preview is not supported #37

Open
@kylemorena

Description

@kylemorena

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions