Config cleanup

This commit is contained in:
Nicola Spadari
2024-07-02 20:40:15 +02:00
parent 10dd6231ed
commit 2dd91d9ca3
3 changed files with 10 additions and 168 deletions

View File

@@ -1,8 +1,3 @@
import { internalIpV4 } from "internal-ip";
// @ts-expect-error process is a nodejs global
const mobile = !!/android|ios/.exec(process.env.TAURI_ENV_PLATFORM);
export default defineNuxtConfig({
modules: [
"@vueuse/nuxt",
@@ -45,13 +40,11 @@ export default defineNuxtConfig({
envPrefix: ["VITE_", "TAURI_"],
server: {
strictPort: true,
hmr: mobile
? {
protocol: "ws",
host: await internalIpV4(),
port: 3001
}
: undefined,
hmr: {
protocol: "ws",
host: "0.0.0.0",
port: 3001
},
watch: {
ignored: ["**/src-tauri/**"]
}