You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have multiple vite configurations for different parts of my app.
this parts are seperated by subdomain e.g. example.com mng.example.com app.example.com
when I run dev, it gives me the APP_URL value, it would be nice if the configuration would have an option to set a prefix or a custom function even
like this
exportdefaultdefineConfig({plugins: [laravel({url_prefix: 'mng.',// as prefixurl: url=>`mng.${url}`,// as functionbuildDirectory: 'build/mng',input: ['resources/builds/mng/js/app.js'],refresh: true,}),]});
The text was updated successfully, but these errors were encountered:
The APP_URL environment variable is only used for the console output to remind developers that the Laravel dev server URL differs from the Vite dev server URL that is output above. I'm not sure it's worth adding extra configuration to customise this.
You can, however, modify the APP_URL environment variable when running the dev server, like this:
APP_URL=http://mng.example.com npm run dev
You could add this to the scripts section of your package.json:
I have multiple vite configurations for different parts of my app.
this parts are seperated by subdomain e.g.
example.com
mng.example.com
app.example.com
when I run dev, it gives me the
APP_URL
value, it would be nice if the configuration would have an option to set a prefix or a custom function evenlike this
The text was updated successfully, but these errors were encountered: