Add vite.config.js

This commit is contained in:
Eric Lay 2026-03-11 08:33:48 -05:00
parent 41ddc8c96a
commit 0efb8b8d1a
1 changed files with 20 additions and 0 deletions

20
vite.config.js Normal file
View File

@ -0,0 +1,20 @@
import base44 from "@base44/vite-plugin"
import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'
// https://vite.dev/config/
export default defineConfig({
logLevel: 'error', // Suppress warnings, only show errors
plugins: [
base44({
// Support for legacy code that imports the base44 SDK with @/integrations, @/entities, etc.
// can be removed if the code has been updated to use the new SDK imports from @base44/sdk
legacySDKImports: process.env.BASE44_LEGACY_SDK_IMPORTS === 'true',
hmrNotifier: true,
navigationNotifier: true,
analyticsTracker: true,
visualEditAgent: true
}),
react(),
]
});