You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I developed a vite app in reactpress plugin and everything is working fine.
However the app returns 404 for all images path.
I tried to upload images either statically either in public folder, but it did not work in either cases.
I set the variable base in vite.config.js to match the site domain, and upload the package json with the script "build": "vite build --base=/wp-content/reactpress/apps/[appName]/dist".
Can you please advise on how to make images work in vite environment ?
Activity
rockiger commentedon Apr 5, 2024
I don't know if
--basehas an effect. Thedist-folder should be set in thevite.config.js. Like this:I tested it and it worked flawlessly.