mirror of
https://github.com/vegu-ai/talemate.git
synced 2025-12-16 03:37:51 +01:00
* GLM 4.5 templates * set 0.33 and relock * fix issues with character creation * relock * prompt tweaks * fix lmstudio * fix issue with npm on windows failing on paths set 0.32.1 * linting * update what's new * #214 (#215) * max-height and overflow * max-height and overflow * v-tabs to list and offset new scrollbar at the top so it doesnt overlap into the divider * tweaks * tweaks * prompt tweaks --------- Co-authored-by: Iceman Oakenbear <89090218+IcemanOakenbear@users.noreply.github.com>
41 lines
1.2 KiB
JavaScript
41 lines
1.2 KiB
JavaScript
import { defineConfig, loadEnv } from "vite";
|
|
import { fileURLToPath, URL } from "node:url";
|
|
import vue from "@vitejs/plugin-vue";
|
|
import vuetify from "vite-plugin-vuetify";
|
|
|
|
export default defineConfig(({ mode }) => {
|
|
// Load env file based on `mode` in the current working directory.
|
|
const env = loadEnv(mode, process.cwd(), "");
|
|
const ALLOWED_HOSTS =
|
|
(env.ALLOWED_HOSTS || "all") !== "all"
|
|
? env.ALLOWED_HOSTS.split(",")
|
|
: "all";
|
|
const VITE_TALEMATE_BACKEND_WEBSOCKET_URL =
|
|
env.VITE_TALEMATE_BACKEND_WEBSOCKET_URL || null;
|
|
|
|
console.log("NODE_ENV", env.NODE_ENV);
|
|
console.log("ALLOWED_HOSTS", ALLOWED_HOSTS);
|
|
console.log(
|
|
"VITE_TALEMATE_BACKEND_WEBSOCKET_URL",
|
|
VITE_TALEMATE_BACKEND_WEBSOCKET_URL
|
|
);
|
|
|
|
return {
|
|
plugins: [vue(), vuetify({ autoImport: true })],
|
|
publicDir: "public",
|
|
resolve: {
|
|
alias: {
|
|
// Use OS-native, decoded path for Windows compatibility (handles spaces)
|
|
"@": fileURLToPath(new URL("./src", import.meta.url)),
|
|
},
|
|
},
|
|
server: {
|
|
// host: "0.0.0.0", // Make accessible from any network interface
|
|
hmr: {
|
|
overlay: false,
|
|
},
|
|
allowedHosts: ALLOWED_HOSTS,
|
|
},
|
|
};
|
|
});
|