mirror of
https://github.com/lucasrcsantana/story-generator.git
synced 2025-12-17 05:47:52 +00:00
22 lines
427 B
TypeScript
22 lines
427 B
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
optimizeDeps: {
|
|
include: ['@supabase/supabase-js', 'resend']
|
|
},
|
|
build: {
|
|
commonjsOptions: {
|
|
include: [/node_modules/],
|
|
transformMixedEsModules: true
|
|
}
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'node-fetch': 'isomorphic-fetch'
|
|
}
|
|
}
|
|
});
|