Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a vue3 project with vite and vue-router, need to deploy to multiple servers with different base path, so, when calling the router's createWebHistory, I don't want to use a hard coded paths, but current setup build pipeline is calling
vite
with different command line--base
so, is there anyway to get vite command line's base option, and pass to
createWebHistory
? and is there anyway to optimize this workflow? to merge into a single same copy of distdir to copy to different servers' different base path and be self aware the base path where it is served?https://next.router.vuejs.org/guide/migration/index.html#moved-the-base-option
Thanks,
Beta Was this translation helpful? Give feedback.
All reactions