Skip to content

Commit 85c9e17

Browse files
committed
fix: security problem with process.env
1 parent 6251226 commit 85c9e17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/router/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ const routes = [
303303
]
304304

305305
const router = createRouter({
306-
history: createWebHashHistory(process.env.BASE_URL),
306+
history: createWebHashHistory(import.meta.env.BASE_URL),
307307
routes,
308308
scrollBehavior() {
309309
// always scroll to top

0 commit comments

Comments
 (0)