From 1220f1a3708f64d86f2fe0e2a89fe1213bc0d8b5 Mon Sep 17 00:00:00 2001 From: Andy Burke Date: Thu, 20 Nov 2025 16:56:40 -0800 Subject: [PATCH] fix: better handling of `.spa` file being in the root, improved code path --- deno.json | 2 +- handlers/spa.ts | 16 ++++++---------- tests/11_test_spa.test.ts | 8 ++++---- 3 files changed, 11 insertions(+), 15 deletions(-) diff --git a/deno.json b/deno.json index 8b05212..3d68252 100644 --- a/deno.json +++ b/deno.json @@ -1,7 +1,7 @@ { "name": "@andyburke/serverus", "description": "A flexible HTTP server for mixed content. Throw static files, markdown, Typescript and (hopefully, eventually) more into a directory and serverus can serve it up a bit more like old-school CGI.", - "version": "0.14.1", + "version": "0.14.2", "license": "MIT", "exports": { ".": "./serverus.ts", diff --git a/handlers/spa.ts b/handlers/spa.ts index fa82343..2f44895 100644 --- a/handlers/spa.ts +++ b/handlers/spa.ts @@ -13,11 +13,7 @@ async function find_spa_file_root(request_path: string): Promise