Skip to content

Commit

Permalink
fix: make METADATA_SERVER_URI required config
Browse files Browse the repository at this point in the history
  • Loading branch information
rhyslbw committed Sep 17, 2021
1 parent ca4ae87 commit 552c5e8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/server/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ export async function getConfig (): Promise<Config> {
if (!env.hasuraUri) {
throw new MissingConfig('HASURA_URI env not set')
}
if (!env.metadataServerUri) {
throw new MissingConfig('METADATA_SERVER_URI env not set')
}
if (!env.postgres.dbFile && !env.postgres.db) {
throw new MissingConfig('POSTGRES_DB_FILE or POSTGRES_DB env not set')
}
Expand Down

1 comment on commit 552c5e8

@asdfz7
Copy link

@asdfz7 asdfz7 commented on 552c5e8 Nov 11, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, very new to all this. What are you supposed to set METADATA_SERVER_URI as? I was not able to find any documentation on this and setting this to a random url does not seem to affect Hasura's ability to initialize. Thanks in advance!

Please sign in to comment.