Logo image (Logo.png) fails to load only in AI Studio (works locally)

Hi,

I’m building an app in Google AI Studio and I’m having a persistent issue with my logo image.

Locally, after downloading the project and running it with npm install and npm run dev, the app works perfectly and the logo (Logo.png) loads with no errors.

However, inside Google AI Studio (Preview / deployed app), the logo consistently fails to load and falls back to my error state. In the console I see messages like:

ADHDotech: 'Logo.png' failed to load. Check root directory.

and in the UI I see “Logo Error / Logo.png Not Found”.

Some relevant details:

  • The exact same code and file structure work locally.

  • Logo.png is present in the project and is referenced correctly (for example via src="/Logo.png" or an imported asset).

  • The issue only occurs inside AI Studio’s runtime / deployment environment, not in my local dev server.

This makes me think the problem is related to how AI Studio packages or serves static image assets, not to the React/Vite setup itself.

Questions:

  1. Is this a known issue with image assets (like Logo.png) not being copied/served correctly in AI Studio apps?

  2. Is there a recommended workaround, for example:

    • always loading images from an external URL/CDN, or

    • using a specific folder structure (e.g. public/Logo.png) that AI Studio supports for static assets?

  3. Is there any guidance or documentation on how AI Studio expects static images to be organized so they work both locally and in the deployed app?

I can provide screenshots and a minimal reproducible example if needed.

Thank you!

Hi @Pola_Gershon ,

Welcome to the Forum!
Thanks for the details. We tested this on our side but weren’t able to reproduce the issue; image assets load correctly on our end.

Yes ,you can try placing static images in the “public/” directory and referencing them with an absolute path . You can also try loading the image from an external URL/CDN to confirm whether the issue is related to asset serving.

If a quick logout and redeploy doesn’t fix it, please share a minimal repro of your setup and asset references so we can help you debug it!

all of those are fixes the code assistant and me tried and did not work,
only when running locally without changing a thing it worked
it’s an issue within the ai studio, that is specific to this platform