Skip to content

Commit

Permalink
Merge pull request #29 from 0x0elliot/0x0elliot/hardcoded-cloudrun
Browse files Browse the repository at this point in the history
fix: removing annoying hardcoded strings
  • Loading branch information
frikky authored Aug 28, 2023
2 parents eb45720 + 8ff78b8 commit d8e9c58
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion db-connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -7939,14 +7939,19 @@ func RunInit(dbclient datastore.Client, storageClient storage.Client, gceProject
dbType = "opensearch"
}

cloudRunUrl := os.Getenv("SHUFFLE_CLOUDRUN_URL")
if cloudRunUrl == "" {
cloudRunUrl = "https://shuffler.io"
}

project = ShuffleStorage{
Dbclient: dbclient,
StorageClient: storageClient,
GceProject: gceProject,
Environment: environment,
CacheDb: cacheDb,
DbType: dbType,
CloudUrl: "https://shuffler.io",
CloudUrl: cloudRunUrl,
BucketName: "shuffler.appspot.com",
}

Expand Down

0 comments on commit d8e9c58

Please sign in to comment.