Add resource provider queries
This commit is contained in:
parent
5b6edf8aa3
commit
025a7da07f
6 changed files with 107 additions and 31 deletions
|
@ -1,5 +1,5 @@
|
|||
import { fileURLToPath, URL } from 'node:url'
|
||||
import { defineConfig } from 'vite'
|
||||
import { defineConfig, UserConfig } from 'vite'
|
||||
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
|
@ -7,8 +7,9 @@ import path from 'path';
|
|||
import vue from '@vitejs/plugin-vue'
|
||||
//import vueDevTools from 'vite-plugin-vue-devtools'
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
import { settings } from "./settings"
|
||||
|
||||
let baseSettings: UserConfig = {
|
||||
plugins: [
|
||||
vue(),
|
||||
//vueDevTools(),
|
||||
|
@ -17,5 +18,17 @@ export default defineConfig({
|
|||
alias: {
|
||||
'@': fileURLToPath(new URL('./src', import.meta.url))
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
if (settings.key && settings.cert) {
|
||||
baseSettings['server'] = {
|
||||
https: {
|
||||
key: fs.readFileSync(path.resolve(settings.key)),
|
||||
cert: fs.readFileSync(path.resolve(settings.cert))
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig(baseSettings)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue