feat(init): initialize new project

This commit is contained in:
2025-11-15 22:58:33 +08:00
commit ec99b0cf6a
16 changed files with 285 additions and 0 deletions

23
vite.config.ts Normal file
View File

@@ -0,0 +1,23 @@
import { defineConfig } from 'vite';
import path from 'path';
import solid from 'vite-plugin-solid';
import tailwind from '@tailwindcss/vite';
export default defineConfig({
plugins: [solid(), tailwind()],
server: {
host: true,
allowedHosts: ['local.kmux.cn'],
proxy: {
'/api': {
target: 'http://local.kmux.cn:8080',
changeOrigin: true,
},
},
},
resolve: {
alias: {
'~': path.resolve(__dirname, 'src'),
},
},
});