aboutsummaryrefslogtreecommitdiff
path: root/src/routes
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2026-05-18 17:02:32 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2026-05-18 17:02:32 +0200
commit70994ddaf48a92d062977bc667c72685a4ccb815 (patch)
tree262dd69b72804e00356cd8c98bb2a93d5668d368 /src/routes
parent2115198c6a292dce97cfb411e939b10c39ca24c1 (diff)
try to use bun for bundling
Diffstat (limited to 'src/routes')
-rw-r--r--src/routes/static.zig3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/routes/static.zig b/src/routes/static.zig
index f52d178..f8f7a6c 100644
--- a/src/routes/static.zig
+++ b/src/routes/static.zig
@@ -1,5 +1,6 @@
const std = @import("std");
const mime = @import("../mime.zig");
+const config = @import("config");
const memora = @import("memora");
const Context = memora.Context;
@@ -9,7 +10,7 @@ const log = std.log.scoped(.fallback);
pub const access = .everyone;
pub fn get(ctx: *Context) anyerror!memora.Stream {
- var static = try std.fs.cwd().openDir("static", .{});
+ var static = try std.fs.cwd().openDir(config.static_path, .{});
defer static.close();
if (static.openFile(ctx.request.head.target[1..], .{})) |file| {