crater-invoice / crater

Open Source Invoicing Solution for Individuals & Businesses
https://craterapp.com
GNU Affero General Public License v3.0
7.62k stars 1.53k forks source link

Use relative paths to reference assets #1226

Open Seb33300 opened 1 year ago

Seb33300 commented 1 year ago

Same as https://github.com/crater-invoice/crater/pull/1223 but without removing the build folder from public.

This pull request fixes assets management to use relative path to make to project compatible with the ASSET_URL config. See: https://laravel.com/docs/10.x/vite#custom-base-urls

I had to run yarn build to rebuild assets using relative url, that's why all assets files have been modified. You should review changes I made in the resources folder.