From 5b50a57c7d4e019a8f22c6913104ae3c6aa78d9d Mon Sep 17 00:00:00 2001 From: Alistair McMillan Date: Tue, 28 May 2024 22:07:21 +0100 Subject: [PATCH 1/2] Fix for #13 model download error Without a .env file the software doesn't know where to download the model files and tries to get them from localhost. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e2baa40..96adf29 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "version": "0.0.0", "type": "module", "scripts": { - "dev": "vite", + "dev": "cp env.sample .env && vite", "build": "[ -f .env ] || cp env.sample .env && vite build && cp _headers dist/_headers", "preview": "vite preview", "check": "svelte-check --tsconfig ./tsconfig.json", From c7c9370000ddd3b3f19a1271bded293fe104ff98 Mon Sep 17 00:00:00 2001 From: Alistair McMillan Date: Fri, 31 May 2024 00:33:24 +0100 Subject: [PATCH 2/2] Update package.json Co-authored-by: Matej Plavevski --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 96adf29..050beef 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "version": "0.0.0", "type": "module", "scripts": { - "dev": "cp env.sample .env && vite", + "dev": "[ -f .env ] || cp env.sample .env && vite", "build": "[ -f .env ] || cp env.sample .env && vite build && cp _headers dist/_headers", "preview": "vite preview", "check": "svelte-check --tsconfig ./tsconfig.json",