merging
This commit is contained in:
@@ -3,13 +3,16 @@ import vue from '@vitejs/plugin-vue'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
import { doocusApi } from './server/doocusApi'
|
||||
|
||||
// Output directory produced by the doocus pipeline (process_doc.py /
|
||||
// ctrl/batch_docs.sh). Override with DOOCUS_OUTPUT.
|
||||
const outputDir = process.env.DOOCUS_OUTPUT
|
||||
?? fileURLToPath(new URL('../../docs-output', import.meta.url))
|
||||
// Output directories produced by the doocus pipeline. One or many, so several
|
||||
// sources can be joined in the tree/search. DOOCUS_OUTPUTS is comma-separated;
|
||||
// DOOCUS_OUTPUT (single) is still honored for back-compat.
|
||||
const outputEnv = process.env.DOOCUS_OUTPUTS ?? process.env.DOOCUS_OUTPUT
|
||||
const outputDirs = (outputEnv
|
||||
? outputEnv.split(',').map((s) => s.trim()).filter(Boolean)
|
||||
: [fileURLToPath(new URL('../../docs-output', import.meta.url))])
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [vue(), doocusApi({ outputDir })],
|
||||
plugins: [vue(), doocusApi({ outputDirs })],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@framework': fileURLToPath(new URL('../framework/src', import.meta.url)),
|
||||
@@ -20,12 +23,12 @@ export default defineConfig({
|
||||
},
|
||||
server: {
|
||||
fs: {
|
||||
// Allow the dev server to read the framework + meetus-app source and the output tree.
|
||||
// Allow the dev server to read the framework + meetus-app source and every output tree.
|
||||
allow: [
|
||||
fileURLToPath(new URL('.', import.meta.url)),
|
||||
fileURLToPath(new URL('../framework', import.meta.url)),
|
||||
fileURLToPath(new URL('../meetus-app', import.meta.url)),
|
||||
outputDir,
|
||||
...outputDirs,
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user