Skip to content

Commit

Permalink
rename 404 to dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
Chi-EEE committed Dec 3, 2023
1 parent 1a0f22c commit c94cd56
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/src/controllers/Room.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
}
1 change: 1 addition & 0 deletions backend/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion frontend/svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c94cd56

Please sign in to comment.