Skip to content

Commit

Permalink
use env for comment topics (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
bosi95 authored Nov 12, 2024
1 parent 69badbc commit 2691155
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/bee.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export async function updateFeed(
// adds "live_x" suffix to the topic if raw is true, so that topics can be versioned if needed
export function getTopic(topic: string, raw: boolean): string {
if (raw) {
return topic + "live_1";
return topic + process.env.ENV;
}
const bee = new Bee(process.env.BEE_API_URL || DEFAULT_URL);
return bee.makeFeedTopic(topic);
Expand Down

0 comments on commit 2691155

Please sign in to comment.