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", "homepage": "https://github.com/kern/filepizza",
"scripts": { "scripts": {
"dev": "next", "dev": "next",
"dev:redis": "docker compose up redis -d && REDIS_URL=redis://localhost:6379 next",
"build": "next build", "build": "next build",
"start": "next start", "start": "next start",
"start:peerjs": "./bin/peerjs.js", "start:peerjs": "./bin/peerjs.js",
@ -83,4 +84,4 @@
"git add" "git add"
] ]
} }
} }

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

Loading…
Cancel
Save