Skip to content

Commit

Permalink
add hardcoded subpath
Browse files Browse the repository at this point in the history
  • Loading branch information
Nadim Ritter committed Sep 23, 2024
1 parent 24460df commit a1d1a38
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion client/src/router/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const routes: Array<RouteRecordRaw> = [
];

const router = createRouter({
history: createWebHistory(),
history: createWebHistory("/sps-gui"),
routes
});

Expand Down
24 changes: 13 additions & 11 deletions client/vite.config.mts
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
// Plugins
import vue from "@vitejs/plugin-vue"
import vue from "@vitejs/plugin-vue";
import vuetify, { transformAssetUrls } from "vite-plugin-vuetify";
import VueI18nPlugin from "@intlify/unplugin-vue-i18n/vite";
import { gitTagPlugin } from "./src/plugins/vite-plugin-git-tag";
import { defineConfig } from "vite";
import { fileURLToPath, URL } from "node:url";


// Utilities
import { defineConfig } from "vite"
import { fileURLToPath, URL } from "node:url"


// https://vitejs.dev/config/
export default defineConfig({
plugins: [

vue({
template: { transformAssetUrls }
}),
// https://github.com/vuetifyjs/vuetify-loader/tree/next/packages/vite-plugin

vuetify({
autoImport: true,
}),

VueI18nPlugin({
include: fileURLToPath(new URL("./src/i18n/locales/**", import.meta.url)),
}),

// gitTagPlugin()
],

define: {
"process.env": {},
_global: ({})
},

resolve: {
alias: {
"@": fileURLToPath(new URL("./src", import.meta.url))
},

extensions: [
".js",
".json",
Expand All @@ -43,7 +43,9 @@ export default defineConfig({
".vue",
],
},

server: {
port: 8081,
},
})

});
2 changes: 1 addition & 1 deletion server/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ app.get("/", (req: Request, res: Response) => {
res.sendFile(path + "index.html");
});

app.get("*", (req: Request, res: Response) => {
app.get("/sps-gui/*", (req: Request, res: Response) => {
res.sendFile(path + "index.html");
});

Expand Down

0 comments on commit a1d1a38

Please sign in to comment.