From c94cd56bda30d7c997ca6c7576710a2564647215 Mon Sep 17 00:00:00 2001 From: Chi Huu Huynh <73843190+Chi-EEE@users.noreply.github.com> Date: Sun, 3 Dec 2023 00:25:50 +0000 Subject: [PATCH] rename 404 to dynamic --- backend/src/controllers/Room.hpp | 2 +- backend/xmake.lua | 1 + frontend/svelte.config.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/src/controllers/Room.hpp b/backend/src/controllers/Room.hpp index 465a9010..237a47bf 100644 --- a/backend/src/controllers/Room.hpp +++ b/backend/src/controllers/Room.hpp @@ -20,5 +20,5 @@ void room::load(const HttpRequestPtr& req, std::string&& room_name) { // The 'room' page is dynamically generated locally, so we don't have a specific file to serve. - callback(drogon::HttpResponse::newFileResponse("public/404.html")); + callback(drogon::HttpResponse::newFileResponse("public/dynamic.html")); } \ No newline at end of file diff --git a/backend/xmake.lua b/backend/xmake.lua index 437c2cf7..dd295d5b 100644 --- a/backend/xmake.lua +++ b/backend/xmake.lua @@ -25,6 +25,7 @@ target("backend") add_packages("drogon") add_packages("tl_expected") + -- Could improve this before_build_files(function(target) import("core.project.config") import("core.base.json") diff --git a/frontend/svelte.config.js b/frontend/svelte.config.js index 5e9ec7e8..c5bbe05c 100644 --- a/frontend/svelte.config.js +++ b/frontend/svelte.config.js @@ -11,7 +11,7 @@ const config = { // these options are set automatically — see below pages: 'build', assets: 'build', - fallback: '404.html', + fallback: 'dynamic.html', strict: false, // precompress: false, strict: true