Skip to content

Commit

Permalink
add warning about using polling
Browse files Browse the repository at this point in the history
  • Loading branch information
goweiss committed Apr 15, 2024
1 parent d7c4202 commit 9ae79a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ dotenv.config();

const port = process.env.PORT;

// Warning: Polling is not to be used in a production environment. Use webhooks instead.
const enablePolling = Boolean(process.env.ENABLE_POLLING);

const DEFAULT_ORIGIN = [
Expand Down

0 comments on commit 9ae79a5

Please sign in to comment.