Today, Bean sprouts used Vite to complete the project of creating VUE-TS, which was found when creating routes when I used

That’s when we started the projectThis can be a problem when creating projects with Vite, and we can use a different method to get environment variablesI’ll see that it’s already normal, and then I want to get my custom environment variableThe createWebHistory parameter is of a specified type and can be used as a type assertion. At this point, it is found that it has been obtainedThis is the solution to this problem for sprouts. There may be a better solution, please share.