update at 2026-02-12 17:30:41

This commit is contained in:
douboer@gmail.com
2026-02-12 17:30:41 +08:00
parent 8ce67dae5e
commit b6804cc2f1
32 changed files with 5765 additions and 0 deletions

23
vite.config.ts Normal file
View File

@@ -0,0 +1,23 @@
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import { readFileSync } from 'node:fs';
import { homedir } from 'node:os';
import { join } from 'node:path';
const certDir = join(homedir(), 'mac.biboer.cn_ecc');
const httpsCert = readFileSync(join(certDir, 'fullchain.cer'));
const httpsKey = readFileSync(join(certDir, 'mac.biboer.cn.key'));
export default defineConfig({
plugins: [vue()],
server: {
host: '0.0.0.0',
port: 5173,
strictPort: true,
allowedHosts: ['mac.biboer.cn'],
https: {
cert: httpsCert,
key: httpsKey
}
}
});