Skip to content

Commit c97a852

Browse files
committed
UPD: BASE URL
1 parent a1111ce commit c97a852

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.env.development

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11

2-
VITE_BASE=/
2+
VITE_BUILD_ADDRESS=

.env.production

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11

2-
VITE_BASE=/vue-bootstrap/
2+
VITE_BUILD_ADDRESS=/vue-bootstrap

src/router/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
import { createRouter, createWebHistory } from "vue-router";
22

3-
const baseUrl = import.meta.env.BASE_URL;
3+
const baseUrl = import.meta.env.VITE_BUILD_ADDRESS;
44

55
export const routes = [
66
{
7-
path: `${baseUrl}`,
7+
path: `${baseUrl}/`,
88
component: () => import("@/layouts/Default.vue"),
99
children: [
1010
{ path: "", name: "Home", component: () => import("@/views/Home.vue") }
1111
],
1212
},
1313
{
14-
path: `${baseUrl}about`,
14+
path: `${baseUrl}/about`,
1515
component: () => import("@/layouts/Page.vue"),
1616
children: [
1717
{ path: "", name: "About", component: () => import("@/views/About.vue") }
1818
],
1919
},
2020
{
21-
path: `${baseUrl}contacts`,
21+
path: `${baseUrl}/contacts`,
2222
component: () => import("@/layouts/Page.vue"),
2323
children: [
2424
{ path: "", name: "Contacts", component: () => import("@/views/Contacts.vue") },

0 commit comments

Comments
 (0)