diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-05-18 17:02:32 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-05-18 17:02:32 +0200 |
| commit | 70994ddaf48a92d062977bc667c72685a4ccb815 (patch) | |
| tree | 262dd69b72804e00356cd8c98bb2a93d5668d368 /src | |
| parent | 2115198c6a292dce97cfb411e939b10c39ca24c1 (diff) | |
try to use bun for bundling
Diffstat (limited to 'src')
| -rw-r--r-- | src/routes/static.zig | 3 | ||||
| -rw-r--r-- | src/storage/media-manager/root.zig | 0 |
2 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| { diff --git a/src/storage/media-manager/root.zig b/src/storage/media-manager/root.zig new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/src/storage/media-manager/root.zig |