Skip to content

Commit

Permalink
#74 move event limit to env file
Browse files Browse the repository at this point in the history
  • Loading branch information
Kreezag authored and Kreezag committed Jun 15, 2024
1 parent 35cce07 commit 7cb3926
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
VITE_EVENTS_REST_API=https://test.buggregator.dev
VITE_EVENTS_WS_API=wss://test.buggregator.dev/connection/websocket
VITE_MAX_EVENTS_COUNT=500
2 changes: 1 addition & 1 deletion src/shared/stores/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { defineStore } from "pinia";
import type { EventId, EventType, ServerEvent } from '../types';
import { useLockedIdsStore } from "./locked-ids";

const MAX_EVENTS_COUNT = 500;
const MAX_EVENTS_COUNT = import.meta.env.VITE_MAX_EVENTS_COUNT || Infinity;

export const useEventStore = defineStore("useEventStore", {
state: () => ({
Expand Down

0 comments on commit 7cb3926

Please sign in to comment.