Skip to content
This repository has been archived by the owner on May 30, 2022. It is now read-only.

Commit

Permalink
fix: set base path
Browse files Browse the repository at this point in the history
  • Loading branch information
Samarium150 committed Aug 29, 2021
1 parent c15432f commit ce6a5a7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "mirage-tank-images",
"version": "1.0.0",
"version": "1.0.1",
"scripts": {
"dev": "vite",
"build": "vue-tsc --noEmit && vite build --base=/mirage-tank-images/",
"build": "vue-tsc --noEmit && vite build",
"serve": "vite preview",
"changelog": "conventional-changelog -p eslint -i CHANGELOG.md -s"
},
Expand Down
2 changes: 1 addition & 1 deletion src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createRouter, createWebHistory } from "vue-router";
import sourceCode from "../lib";

export default createRouter({
history: createWebHistory(),
history: createWebHistory("/mirage-tank-images/"),
routes: [{
path: "/",
name: "Home",
Expand Down
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Banner from "vite-plugin-banner";

// https://vitejs.dev/config/
export default defineConfig({
base: "/mirage-tank-images/",
plugins: [
vue(),
ViteComponents({
Expand Down

0 comments on commit ce6a5a7

Please sign in to comment.