Add project files
Verificar despliegue Docker / build (push) Has been cancelled

This commit is contained in:
Andres Santana
2026-10-02 11:12:37 -04:00
parent 10d76c094f
commit 47cf941ba7
177 changed files with 31728 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
import path from 'node:path';
import { fileURLToPath } from 'node:url';
const webRoot = path.dirname(fileURLToPath(import.meta.url));
// Solo para Docker/Coolify: conserva intacta la configuración del editor.
export default async function productionConfig() {
const { default: react } = await import('@vitejs/plugin-react');
return {
root: webRoot,
plugins: [react()],
resolve: {
alias: { '@': path.resolve(webRoot, 'src') },
extensions: ['.jsx', '.js', '.json'],
},
build: {
outDir: path.resolve(webRoot, '../../dist/apps/web'),
emptyOutDir: true,
sourcemap: false,
target: 'es2020',
},
};
}