first commit

This commit is contained in:
Lucas Santana 2024-12-19 17:34:47 -03:00
parent d2b959fe73
commit fd908391bd
4 changed files with 17 additions and 5 deletions

1
.gitignore vendored
View File

@ -25,3 +25,4 @@ dist-ssr
.env .env
.env.local .env.local
.env.*.local

View File

@ -5,14 +5,15 @@
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build": "vite build", "build": "tsc && vite build",
"lint": "eslint .", "lint": "eslint .",
"preview": "vite preview" "preview": "vite preview"
}, },
"dependencies": { "dependencies": {
"lucide-react": "^0.344.0", "lucide-react": "^0.344.0",
"react": "^18.3.1", "react": "^18.3.1",
"react-dom": "^18.3.1" "react-dom": "^18.3.1",
"@supabase/supabase-js": "^2.39.7"
}, },
"devDependencies": { "devDependencies": {
"@eslint/js": "^9.9.1", "@eslint/js": "^9.9.1",

View File

@ -1,6 +1,10 @@
import { createClient } from '@supabase/supabase-js' import { createClient } from '@supabase/supabase-js'
const supabaseUrl = 'https://bsjlbnyslxzsdwxvkaap.supabase.co' const supabaseUrl = import.meta.env.VITE_SUPABASE_URL
const supabaseAnonKey = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImJzamxibnlzbHh6c2R3eHZrYWFwIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MzQ2MzUzNzYsImV4cCI6MjA1MDIxMTM3Nn0.ygEUrAu2ZnCkfgS4-k4Puvk7ywkn3U7Bnzh7BSOQWFo' const supabaseAnonKey = import.meta.env.VITE_SUPABASE_ANON_KEY
if (!supabaseUrl || !supabaseAnonKey) {
throw new Error('Supabase URL and Anon Key must be defined')
}
export const supabase = createClient(supabaseUrl, supabaseAnonKey) export const supabase = createClient(supabaseUrl, supabaseAnonKey)

View File

@ -5,6 +5,12 @@ import react from '@vitejs/plugin-react';
export default defineConfig({ export default defineConfig({
plugins: [react()], plugins: [react()],
optimizeDeps: { optimizeDeps: {
exclude: ['lucide-react'], include: ['@supabase/supabase-js']
}, },
build: {
commonjsOptions: {
include: [/node_modules/],
transformMixedEsModules: true
}
}
}); });