feat(project): deploy and project adjustments (MIN-304)
- Changing dynamic envs to a separate file
config.js
that is modifiable after build and export. - Changing the environment variable
NEXT_PUBLIC_PROJECT_ID
to a parameter in the URL named id, and adding a default ID defined in the environment variableNEXT_PUBLIC_DEFAULT_PROJECT_ID
. - The bug related to overview images has been fixed - in other projects, such as the one with the id covidmap_appu_test, the overview images from the backend were not an array but null, which caused an error preventing the project from functioning. I've added handling for null overview images and disabled the 'Browse overview images' button in such cases.
Project id url:
Build with config instead of envs:
Nagranie_z_ekranu_2024-03-22_o_20.03.53
Why removed fontLoaders
from next.config.js
:
Why added
images: { unoptimized: true, },
in next.config.js
:
Overview images:
Closes MIN-304