Deploy multiple sources to the same server (Part 2)

Post by Lưu Đại at 10-01-2024
After read the docs, I manage to config the base path '/bo/' for vuejs correctly
image.png

The variable VITE_DEFAULT_PATH="/bo/"
Please keep in mind, because this is config file so do not keep the environment variables values in it. This file will be loaded before vuejs create its app and load its environment variables. If you want to use environment variables in here, you have to load it manually.

process.env = {...process.env, ...loadEnv(mode, process.cwd())};
After all those problems, I manage to deploy successfully and use some basic function.