mandrasch / ddev-craftcms-vite

Demo repository for CraftCMS + DDEV + vite, including support for GitHub codespaces.
Creative Commons Zero v1.0 Universal
12 stars 4 forks source link

Alter Vite config, set serverPublic just to dist #8

Closed mikewink closed 4 months ago

mikewink commented 7 months ago

https://github.com/mandrasch/ddev-craftcms-vite/blob/bbd0b3ba38325825ccc18229d1a0068133ef50fd/config/vite.php#L23

I had a problem with multisite installations and CORS with that current setting. Maybe that can be left out? It works for me™. ;)

mandrasch commented 7 months ago

Hey @mikewink,

interesting, thanks very much! I'll have a look.

mandrasch commented 7 months ago

Hey @mikewink, short update:

I checked the craft vite docs where I got this setting from. They state

serverPublic - the public server URL to your asset files; it can be a full URL or a partial path, or a Yii2 alias. This will appear in Githubissues.

  • Githubissues is a development platform for aggregating issues.