By default, when Vite builds the project, it will generate the CSS file inside the ./assets path, causing prod images to look for the background images in ./assets/assets. It was necessary to set build.assetsDir to an empty string to generate the CSS file in the root folder so the images can be found in ./assets both in local env and prod.
Description
By default, when Vite builds the project, it will generate the CSS file inside the
./assets
path, causing prod images to look for the background images in./assets/assets
. It was necessary to setbuild.assetsDir
to an empty string to generate the CSS file in the root folder so the images can be found in./assets
both in local env and prod.Project: Issue link
Changes
build.assetsDir
invite.config.ts
Evidence