Adjust renew interval and add dev script

pull/162/head
Alex Kern 12 months ago
parent 74b9ef2554
commit 0717e3e6be
No known key found for this signature in database
GPG Key ID: EF051FACCACBEE25

@ -7,6 +7,7 @@
"homepage": "https://github.com/kern/filepizza",
"scripts": {
"dev": "next",
"dev:redis": "docker compose up redis -d && REDIS_URL=redis://localhost:6379 next",
"build": "next build",
"start": "next start",
"start:peerjs": "./bin/peerjs.js",

@ -12,7 +12,7 @@ function generateURL(slug: string): string {
export function useUploaderChannel(
uploaderPeerID: string,
renewInterval = 5000,
renewInterval = 60_000,
): {
isLoading: boolean
error: Error | null

Loading…
Cancel
Save