Skip to content

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 variable NEXT_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:

projectId

Build with config instead of envs:

Nagranie_z_ekranu_2024-03-22_o_20.03.53

Why removed fontLoaders from next.config.js:

Zrzut_ekranu_2024-03-21_o_23.47.56

Why added images: { unoptimized: true, }, in next.config.js:

Zrzut_ekranu_2024-03-21_o_23.50.07

Overview images:

overview-images

Closes MIN-304

Merge request reports