Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

webinarincadmin's avatar

ASSET_URL is being shown to the URL

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!

0 likes
2 replies
webinarincadmin's avatar
Level 12

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.