Initial commit: monorepo Naturcalabacera reservas (apps/api + apps/web + packages/shared)
This commit is contained in:
17
apps/web/vite.config.ts
Normal file
17
apps/web/vite.config.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { defineConfig } from 'vite';
|
||||
import react from '@vitejs/plugin-react';
|
||||
import path from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
resolve: {
|
||||
alias: {
|
||||
// Resuelve el workspace package directamente desde su src/
|
||||
'@naturcalabacera/shared': path.resolve(__dirname, '../../packages/shared/src'),
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user