mirror of
https://github.com/Anil-matcha/Open-Generative-AI.git
synced 2026-05-07 01:17:18 +00:00
- Rename vite.config.js to vite.config.mjs so ESM-only @tailwindcss/vite loads correctly (CJS require() can't import ESM modules) - Remove tailwindcss from postcss.config.js — handled by @tailwindcss/vite in Tailwind v4; the v3 PostCSS plugin conflicts with v4 CSS syntax - Add "main": "electron/main.js" to package.json so electron-builder finds the entry point instead of defaulting to index.js - Bump version to 1.0.1 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
18 lines
375 B
JavaScript
18 lines
375 B
JavaScript
import { defineConfig } from 'vite';
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
|
|
export default defineConfig({
|
|
base: './',
|
|
plugins: [
|
|
tailwindcss(),
|
|
],
|
|
server: {
|
|
proxy: {
|
|
'/api': {
|
|
target: 'https://api.muapi.ai',
|
|
changeOrigin: true,
|
|
secure: false
|
|
}
|
|
}
|
|
}
|
|
});
|