blockful-io / external-resolver-dapp

https://external-resolver-dapp.vercel.app
2 stars 2 forks source link

refactor: Update DEFAULT_DATABASE_RESOLVER_ADDRESS to be Defined in .env File #153

Closed eduramme closed 3 months ago

eduramme commented 4 months ago

Refactor Request

Describe the Refactor Request

The DEFAULT_DATABASE_RESOLVER_ADDRESS is currently hard-coded within the application. For better configuration management and security, it is necessary to move this setting to the .env file.

Additionally, validations should be added to ensure that environment variables are correctly set.

Describe Preferred Solution

Define DEFAULT_DATABASE_RESOLVER_ADDRESS on .env file

Related Code

constants.ts file const DEFAULT_DATABASE_RESOLVER_ADDRESS =