🎉 Initial Commit for the Sphere webpage

This commit is contained in:
2025-08-03 20:11:30 +08:00
parent adf62fb42b
commit 7d3236550c
31 changed files with 886 additions and 9 deletions

View File

@@ -0,0 +1,32 @@
import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx'
import vueDevTools from 'vite-plugin-vue-devtools'
import tailwindcss from '@tailwindcss/vite'
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'
// https://vite.dev/config/
export default defineConfig({
base: '/',
plugins: [vue(), vueJsx(), vueDevTools(), tailwindcss()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
server: {
proxy: {
'/api': {
target: 'http://localhost:5071',
changeOrigin: true,
},
'/cgi': {
target: 'http://localhost:5071',
changeOrigin: true,
}
},
},
})