paint-brush
How To Serve a Vite + Vue3 Page Inside a Sub-folderby@dhgouveia
2,848 reads
2,848 reads

How To Serve a Vite + Vue3 Page Inside a Sub-folder

by Jose De Gouveia2mFebruary 7th, 2023
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Vue3 + Vite page can be served inside a sub- folder. To make this happen, you need two changes. The first one is on `vite.config.ts` or `js` and add the parameter `base: ''` The second change is inside your vue router and adding the parameter base in `createWebHistory'
featured image - How To Serve a Vite + Vue3 Page Inside a Sub-folder
Jose De Gouveia HackerNoon profile picture
Jose De Gouveia

Jose De Gouveia

@dhgouveia

Senior full stack web developer

About @dhgouveia
LEARN MORE ABOUT @DHGOUVEIA'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Jose De Gouveia HackerNoon profile picture
Jose De Gouveia@dhgouveia
Senior full stack web developer

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite