- Simplify vite.config.ts to avoid unified config initialization during build - Fix pre-commit hook to remove reference to deleted script - Prevent circular dependencies and initialization conflicts - Ensure proper lazy loading of configuration - Resolve blank page issue caused by config loading timing
21 lines
412 B
TypeScript
21 lines
412 B
TypeScript
import path from 'path';
|
|
import { defineConfig } from 'vite';
|
|
|
|
export default defineConfig(({ mode }) => {
|
|
// Use environment variables directly since unified config handles defaults
|
|
return {
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, '.'),
|
|
},
|
|
},
|
|
server: {
|
|
port: 5173,
|
|
host: true,
|
|
},
|
|
build: {
|
|
sourcemap: mode === 'development',
|
|
},
|
|
};
|
|
});
|