Skip to content

Is the "base" configuration must be the same between router and vite?What if I need different configuration? #1613

Closed Answered by posva
dang0705 asked this question in Help and Questions
Discussion options

You must be logged in to vote

That is not possible, base is to define a serving folder : https://router.vuejs.org/api/interfaces/RouterHistory.html#Properties-base

You can define a prefix in routes with

routes: [
	{ path: '/prefix', children: [{ path: '', name: 'Home' }, { path: 'about', name: 'About' }] }
]

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by posva
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1612 on November 15, 2022 07:14.