server as netlify function

This commit is contained in:
Matteo Rosati
2026-01-26 15:22:24 +01:00
parent 2d90ce676b
commit a9170932e7
5 changed files with 13 additions and 11846 deletions

View File

@@ -6,7 +6,7 @@ export const INITIAL_ZOOM = 17;
/**
* MapTiler style URL for the map
*/
export const MAP_STYLE = import.meta.env.VITE_MAPTILER_STYLE;
export const MAP_STYLE = typeof import.meta !== 'undefined' && import.meta.env?.VITE_MAPTILER_STYLE ? import.meta.env.VITE_MAPTILER_STYLE : '';
export const STATUSES = {
SUCCESS: "success",