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

[Bug]: Custom logo throws 500 error #183

Open
1 of 2 tasks
mffap opened this issue Sep 19, 2024 · 4 comments
Open
1 of 2 tasks

[Bug]: Custom logo throws 500 error #183

mffap opened this issue Sep 19, 2024 · 4 comments
Assignees
Labels
bug Something isn't working login Login Application

Comments

@mffap
Copy link
Member

mffap commented Sep 19, 2024

Preflight Checklist

  • I could not find a solution in the documentation, the existing issues or discussions
  • I have joined the ZITADEL chat

Version

No response

Describe the problem caused by this bug

Error: Invalid src prop (https://b2b-demo-rbxajm.zitadel.cloud/assets/v1/170084137439330561/policy/label/logo-dark-189254589529194753) on next/image, hostname "b2b-demo-rbxajm.zitadel.cloud" is not configured under images in your next.config.js
See more info: https://nextjs.org/docs/messages/next-image-unconfigured-host

To reproduce

I have a custom logo configured. This error appears when calling up http://localhost:3000 in dev mode.

Screenshots

No response

Expected behavior

No response

Relevant Configuration

No response

Additional Context

No response

@mffap mffap added the bug Something isn't working label Sep 19, 2024
@mu-irfan
Copy link

Hey, gonna fix it, can you assign it to me

@hifabienne
Copy link
Member

@mu-irfan thanks for taking this over, I assigned you to the issue.

@mffap quick question, did you set the trusted domain on your instance?
I didn't have a look on my test setup what the exact error was, but at the beginning I also couldn't load the logo, I tested with the deploy to vercel, and either the problem was that my env var wasn't set correctly or the trusted domain.
https://zitadel.com/docs/apis/resources/admin/admin-service-add-instance-trusted-domain

@hifabienne hifabienne moved this to 🧐 Investigating in Product Management Sep 30, 2024
@hifabienne hifabienne added the login Login Application label Sep 30, 2024
@mffap
Copy link
Member Author

mffap commented Sep 30, 2024

@mu-irfan thanks for taking this over, I assigned you to the issue.

@mffap quick question, did you set the trusted domain on your instance? I didn't have a look on my test setup what the exact error was, but at the beginning I also couldn't load the logo, I tested with the deploy to vercel, and either the problem was that my env var wasn't set correctly or the trusted domain. https://zitadel.com/docs/apis/resources/admin/admin-service-add-instance-trusted-domain

What's the value for the trusted domain? Is that supposed to be http://localhost:3000/ ?
I followed the steps Run Login UI, I don't think it states something about Trusted Domains.

@hifabienne
Copy link
Member

You are right in the readme thats not stated, only in the ZITADEL docs: https://zitadel.com/docs/guides/integrate/login-ui/typescript-repo#deploy-to-vercel

The domain of the login needs to be added, so it can be used as public host from ZITADEL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working login Login Application
Projects
Status: 🧐 Investigating
Development

No branches or pull requests

3 participants