feat:save

This commit is contained in:
zyronon
2025-08-03 13:49:03 +08:00
parent 05bf1ac5b4
commit 102f5fbc1f
32 changed files with 3 additions and 3832 deletions

View File

@@ -18,7 +18,7 @@ function pathResolve(dir: string) {
const lifecycle = process.env.npm_lifecycle_event;
async function s() {
async function getConfig() {
const latestCommitHash = await new Promise<string>((resolve) => {
return getLastCommit((err, commit) => (err ? 'unknown' : resolve(commit.shortHash)))
})
@@ -92,7 +92,7 @@ async function s() {
},
server: {
port: 3000,
open: false,
open: true,
host: '0.0.0.0',
fs: {
strict: false,
@@ -105,4 +105,4 @@ async function s() {
}
// https://vitejs.dev/config/
export default defineConfig(s as any)
export default defineConfig(getConfig as any)