feat: Initialize OneOS asset management app

Sets up the basic structure and configuration for the OneOS asset management and vehicle rental solution. Includes project files, dependencies, and initial UI components.
This commit is contained in:
pazz09adk-glitch
2026-03-30 17:20:43 +08:00
parent adbf03b5b0
commit 8893228a5d
12 changed files with 5066 additions and 8 deletions

24
vite.config.ts Normal file
View File

@@ -0,0 +1,24 @@
import tailwindcss from '@tailwindcss/vite';
import react from '@vitejs/plugin-react';
import path from 'path';
import {defineConfig, loadEnv} from 'vite';
export default defineConfig(({mode}) => {
const env = loadEnv(mode, '.', '');
return {
plugins: [react(), tailwindcss()],
define: {
'process.env.GEMINI_API_KEY': JSON.stringify(env.GEMINI_API_KEY),
},
resolve: {
alias: {
'@': path.resolve(__dirname, '.'),
},
},
server: {
// HMR is disabled in AI Studio via DISABLE_HMR env var.
// Do not modify—file watching is disabled to prevent flickering during agent edits.
hmr: process.env.DISABLE_HMR !== 'true',
},
};
});