Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

zeeshanhashmi's avatar

After deployment, I cant see images using VITE.

Hi,

I made a project and used following line to attach resources.

@vite(['resources/css/app.css', 'resources/js/app.js'])

And to show logo I wrote this in the src attribute of img.

{{ Vite::asset('resources/images/logo.svg') }}

Next, I ran npm run build command and deployed to my GoDaddy server. However, CSS and logo are not loaded.

0 likes
3 replies
gych's avatar

Which steps did you exactly take when deploying ?

zeeshanhashmi's avatar

Thanks for you message. This is what I did:

  1. I ran npm run build
  2. Changed the App url in .env file
  3. Then I zip all the files & Folders
  4. In Godaddy's shared hosting, I uploaded everything to root and unzip
  5. Everything works fine but just vite assets are not working neither images that were included using vite.

Please or to participate in this conversation.