Laravel Mix assets url conflicts #4104
Unanswered
clementmas
asked this question in
Ideas & Feature Requests
Replies: 1 comment 2 replies
-
@crynobone this is not a "feature request". It is a bug. Please reopen the issue. I bought Laravel Nova to add it to an existing Laravel app. The documention doesn't mention any incompatibilities, because there shouldn't be. Nova's assets have nothing to do with the default assets. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description:
Laravel Nova (v4.2.5) is loading its assets using the
mix()
helper (seenova\resources\views\layout.blade.php
below), which creates conflicts whenmix_url
is set to a different domain name.Detailed steps to reproduce the issue on a fresh Nova installation:
config/app.php
, add'mix_url' => 'https://cdn.laravel.test'
=> Nova's assets (JS, CSS and fonts) can't be loaded.
This means that at the moment, Laravel Nova can't be added to an existing Laravel application that has its own custom Laravel Mix config.
To prevent this conflit, Nova's assets should be loaded from an absolute url
/vendor/nova/...
or using the value fromconfig('nova.domain')
.Beta Was this translation helpful? Give feedback.
All reactions