Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions app/docs/vite.config.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ type: JS Module
title: vite.config.js
resource: app/vite.config.js
docgen:
crc: 428dc103
crc: 3e06ab05
model: omlx/gemma-4-e4b-it-OptiQ-4bit
tier: local-min
score: 100
issues: judge:inaccurate:0.98
judgeModel: openai-codex/gpt-5.4-mini
Expand Down
14 changes: 13 additions & 1 deletion app/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
// @ts-nocheck
import { execSync } from 'node:child_process'
import { dirname } from 'node:path'
import { fileURLToPath } from 'node:url'
import { quasar, transformAssetUrls } from '@quasar/vite-plugin'
import Vue from '@vitejs/plugin-vue'
import AutoImport from 'unplugin-auto-import/vite'
import { defineConfig } from 'vite'
import { defineConfig, searchForWorkspaceRoot } from 'vite'
import Layouts from 'vite-plugin-vue-layouts-next'
import VueMacros from 'vue-macros/vite'

const host = process.env.TAURI_DEV_HOST
const quasarVariables = fileURLToPath(new URL('src/quasar-variables.sass', import.meta.url))
// git worktrees have their own .git, so Vite's workspace-root search stops there
// and never reaches the main repo's node_modules — allow it explicitly
const monorepoRoot = dirname(
execSync('git rev-parse --git-common-dir', { cwd: import.meta.dirname })
.toString()
.trim()
)

// https://vite.dev/config/
export default defineConfig(() => ({
Expand Down Expand Up @@ -41,6 +50,9 @@ export default defineConfig(() => ({
: undefined,
watch: {
ignored: ['**/src-tauri/**']
},
fs: {
allow: [searchForWorkspaceRoot(import.meta.dirname), monorepoRoot]
}
}
}))
Loading