- Updated the PVC models in the database and adjusted the tests accordingly to reflect the new model counts and codes. - Removed deprecated models from the JSON data for PVC systems. - Added new GLB models for "scorrevole_sf_3_ante" and "scorrevole_sf_4_ante". - Enhanced the development scripts to streamline the build process for both frontends. - Updated documentation to reflect changes in the development environment and deployment process. - Improved the styling of texture radio options for better visibility. - Fixed URL handling in the configurator to ensure proper routing and API calls.
8 lines
466 B
JavaScript
8 lines
466 B
JavaScript
// Base URL dell'API Laravel. Il configuratore è servito dallo stesso backend (/configuratore/),
|
|
// quindi di default l'API è sulla stessa origine. Sovrascrivibile a build time con
|
|
// import.meta.env.VITE_PREVENTIVI_API_BASE o a runtime con window.PREVENTIVI_API_BASE.
|
|
export const API_BASE =
|
|
(typeof window.PREVENTIVI_API_BASE === 'string' && window.PREVENTIVI_API_BASE) ||
|
|
import.meta.env.VITE_PREVENTIVI_API_BASE ||
|
|
`${window.location.origin}/api`;
|