Skip to content

Commit

Permalink
Update vite.config.js
Browse files Browse the repository at this point in the history
trying to solve the problem with the path to find the assets in the deploy environment
  • Loading branch information
DiegoAndresRamirez authored Nov 3, 2024
1 parent 8fe2d3c commit 40b157e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ export default defineConfig({
},
}),
],
base: process.env.APP_URL || '/', // Asegura que las URLs usen HTTPS en producción
base: (process.env.APP_URL ? process.env.APP_URL + '/build/' : '/'), // Asegura que las URLs usen HTTPS en producción
//https://url-base/build/assets/...
});

0 comments on commit 40b157e

Please sign in to comment.