-
-
Notifications
You must be signed in to change notification settings - Fork 82
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
One problem add Images in NextJS #512
Comments
I don't get what is the problem - do you actually have the file |
Yes, I have the file there. I have tried saving it to Public and routing it as "/logo.png". Also with "__dirname +" logo.png "", I also tried to grab the image from a cloudinary url |
I'm trying to get some images to add to a template. The fetch request seems to freeze and give no response, neither catch () nor then () is executed. It seems to be frozen in production. In local the code works perfectly and the date is executed as expected, but in production with Vercel it is frozen. What I can be doing wrong?.
|
Any update to this? Running into same issue with icon.png not loading, but somehow logo.png loads |
I had to use path and import the images like so:
my images live in Maybe it helps someone! |
I am trying to import two images in png, inside my API Routes to generate a passbook file. In local this works without problem, but when doing the deployment I get this error continuously
I have the images inside the Route folder ....
await template.images.add ("icon", "/icon.png"));
await template.images.add ("logo", "/logo.png"))
The text was updated successfully, but these errors were encountered: