move assets around

move assets around
This commit is contained in:
Alan Daniels 2025-11-02 13:35:02 +11:00
parent 50117ff78d
commit 8f8f6fcd8d
7 changed files with 11 additions and 6 deletions

View file

@ -44,14 +44,18 @@ pub fn SendInertiaResponse(endpoint: anytype, r: zap.Request, arena: Allocator,
arena,
@embedFile("root.html"),
.{
(if (show_unbuilt_assets)
"/src/favicon.svg"
else
"/favicon.svg"),
(if (show_unbuilt_assets)
"/src/main.ts"
else
"/build/main.js"),
"/main.js"),
(if (show_unbuilt_assets)
"/src/style.css"
else
"/build/style.css"),
"/style.css"),
HtmlEncodeFormatter{ .input = inertia_json },
},
);