Skip to content

Vite App images path  #56

Description

@cif95

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions