generated from CodrJS/ts-npm-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add kafka vars; update var naming and README
- Loading branch information
DylanBulmer
committed
Mar 20, 2023
1 parent
f58f3f7
commit be7f7c5
Showing
5 changed files
with
20 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
export const KafkaConfig: { | ||
brokers: string; | ||
clientId: string; | ||
consumer: { group: string }; | ||
} = { | ||
brokers: process.env.KAFKA_BROKERS as string, | ||
clientId: process.env.KAFKA_CLIENT_ID as string, | ||
consumer: { group: process.env.KAFKA_CONSUMER_GROUP as string }, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import config from "./config"; | ||
import Config from "./config"; | ||
|
||
export * from "./config"; | ||
export default config | ||
export default Config |