Shouldnt publicPath be a path not an url?
Try setting it to '/'
The default is even / already
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Everything is working except that the ASSET_URL is being shown to the URL.
I am using vue-cli for my frontend and I'm using the ASSET_URL to set Vue's publicPath so all of my assets will be served through S3/CloudFront.
Here's the example of the URL that is showing when I visit my app. https://domain.com/https:/d2mn9i111to3jdt.cloudfront.net/s1j3vbh2-a7510-4a21-9abf-9881vklhja/login it should only be https://domain.com/login
Thanks!
I've finally fixed this by setting the base option of the Vue router to "/" in production and setting it to BASE_URL env on local.
Please or to participate in this conversation.