You need to replace every occurence of %PUBLIC_URL% in public/index.html by %REACT_APP_PUBLIC_URL%. Other than that, LGTM.
Again cra-env is not as developed ad vite-envs.
In cra-envs there's a lot of hoops you need to jump into to make it work. With vite-envs it's seeamless since it's a legit plugin for the bundler as opposed to cra-envs that monkey patches.
You need to replace every occurence of
%PUBLIC_URL%
inpublic/index.html
by%REACT_APP_PUBLIC_URL%
. Other than that, LGTM.Again
cra-env
is not as developed ad vite-envs.In cra-envs there's a lot of hoops you need to jump into to make it work. With vite-envs it's seeamless since it's a legit plugin for the bundler as opposed to cra-envs that monkey patches.