ui
This commit is contained in:
28
ui/app/vite.config.ts
Normal file
28
ui/app/vite.config.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
import { meetusApi } from './server/meetusApi'
|
||||
|
||||
// Output directory produced by the meetus pipeline. Override with MEETUS_OUTPUT.
|
||||
const outputDir = process.env.MEETUS_OUTPUT
|
||||
?? fileURLToPath(new URL('../../output', import.meta.url))
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [vue(), meetusApi({ outputDir })],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@framework': fileURLToPath(new URL('../framework/src', import.meta.url)),
|
||||
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
||||
},
|
||||
},
|
||||
server: {
|
||||
fs: {
|
||||
// Allow the dev server to read the framework source and the output tree.
|
||||
allow: [
|
||||
fileURLToPath(new URL('.', import.meta.url)),
|
||||
fileURLToPath(new URL('../framework', import.meta.url)),
|
||||
outputDir,
|
||||
],
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user