Level 51
In your Vue router config, if you have import.meta.env.BASE_URL passed to createWebHistory remove it.
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi,
I have a Laravel / Vue app. I added the following 2 lines to the deplyment script to create the assets on the server.
npm install
npm run build
This has caused an issue, and now build is in the url for all pages, for example:
http://domain.com/build/auth/login
How can I fix this?
In your Vue router config, if you have import.meta.env.BASE_URL passed to createWebHistory remove it.
Please or to participate in this conversation.