Skip to content

How to change the assets URL origin added by @vite directive? #43117

Answered by iagobruno
iagobruno asked this question in Q&A
Discussion options

You must be logged in to vote

Solution

Recently the Laravel core team added an env variable to customize the assets URL prefix.
So just configure this variable in your admin panel:

ASSET_URL=https://your-app.herokuapp.com

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@iagobruno
Comment options

Comment options

You must be logged in to vote
2 replies
@abhijitbcob
Comment options

@CLEMREP
Comment options

Answer selected by iagobruno
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants