React Vite Background Img with Tailwind not deploying

Hello all,

after deploying a Vite React App the background img is not uploading after the deployment.
On localhost it is working perfectly.
Any advice would be helpful.

Thank you very much in advance!

/** @type {import('tailwindcss').Config} */
export default {
  content: [
    "./index.html",
    "./src/**/*.{js,ts,jsx,tsx}",
  ],
  darkMode: 'class',
  theme: {
    extend: {
      backgroundImage: {
        'hero': `url("../img/hero.png")`
      },
      flex: {
        '5.5': '5.5 5.5 0%'
      }
  },
  plugins: [],
}
}

Hey,

Could you share more specifics about the issue, what you’ve attempted, and so on? While our assistance with code-related issues is somewhat limited, I’m willing to help a little bit if you can offer a deeper insight into the problem you’re encountering.

Jérémy.
Render Support, UTC+3

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.