ai-cfia / fertiscan-backend

Fertiscan backend
MIT License
2 stars 0 forks source link

As a developer, I want validation for environment variables so that the backend does not start with missing or invalid configurations. #93

Closed Endlessflow closed 1 week ago

Endlessflow commented 1 month ago

Context

The application relies on several environment variables for configuration, but it currently does not validate these variables at startup. This can lead to runtime errors and misconfigurations that are hard to debug.

Problem to Solve

Implementing validation for environment variables at application startup will ensure that the application only runs with valid and complete configurations.

Completion Criteria

snakedye commented 1 month ago

I checked the backend and there really is only one variable that we need to check and that's UPLOAD_PATH which can be set to 'uploads' by default. The rest are on the pipeline repo but the only thing not covered was the deployment and I fixed it in the last commit.

snakedye commented 1 week ago

This is now done in the main for

snakedye commented 1 week ago

@Endlessflow Your opinion?

Endlessflow commented 1 week ago

Yeah it looks good - we can indeed close this, thanks.