Skip to content

Prefix param typing #311

Closed Answered by posva
boussadjra asked this question in Q&A
Feb 13, 2024 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

extendRoutes is runtime only. In your case you can add that prefix to all routes in the config with routesFolder:

    VueRouter({
      routesFolder: [
        // can add multiple routes folders
        {
          src: 'src/pages',
          // can even add params
          // path: '[lang]/',
        },
	  ]
	})

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@boussadjra
Comment options

@posva
Comment options

@posva
Comment options

@boussadjra
Comment options

@posva
Comment options

Answer selected by posva
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #310 on February 13, 2024 14:38.