From c80462c3efc1f602e7c3387865cd44218315e8b5 Mon Sep 17 00:00:00 2001 From: dawn <90008@gaze.systems> Date: Fri, 6 Mar 2026 14:13:39 +0300 Subject: [PATCH] redirect.html -> index.html --- build.ts | 4 ++-- deno.json | 2 +- redirect.html => index.html | 0 3 files changed, 3 insertions(+), 3 deletions(-) rename redirect.html => index.html (100%) diff --git a/build.ts b/build.ts index 96e023d..2ca673f 100644 --- a/build.ts +++ b/build.ts @@ -1,5 +1,5 @@ -const html = await Deno.readTextFile("redirect.html"); +const html = await Deno.readTextFile("index.html"); const url = Deno.env.get("API_URL") ?? "/"; await Deno.remove("dist", { recursive: true }).catch(() => {}); await Deno.mkdir("dist"); -await Deno.writeTextFile("dist/redirect.html", html.replaceAll("__API_URL__", url)); +await Deno.writeTextFile("dist/index.html", html.replaceAll("__API_URL__", url)); diff --git a/deno.json b/deno.json index a0fabc4..5606afe 100644 --- a/deno.json +++ b/deno.json @@ -5,6 +5,6 @@ "start": "deno run -A --unstable-kv main.ts", "dev": "deno run -A --unstable-kv --watch main.ts", "build": "deno run -A build.ts", - "deploy": "deno task build && npm create wisp -- deploy -y --spa --path ./dist --site random did:plc:dfl62fgb7wtjj3fcbb72naae" + "deploy": "npm create wisp -- deploy -y --spa --path ./dist --site random did:plc:dfl62fgb7wtjj3fcbb72naae" } } diff --git a/redirect.html b/index.html similarity index 100% rename from redirect.html rename to index.html -- 2.51.2