Compare commits
2 Commits
0c6a9366f5
...
e7a6aa5f04
Author | SHA1 | Date | |
---|---|---|---|
e7a6aa5f04 | |||
843bc56558 |
|
@ -74,7 +74,7 @@ fn make(step: *std.Build.Step, prog_node: *std.Progress.Node) !void {
|
|||
&client,
|
||||
self.worker_name,
|
||||
self.options.wasm_dir orelse ".",
|
||||
script,
|
||||
final_script,
|
||||
al.writer(),
|
||||
std.io.getStdErr().writer(),
|
||||
);
|
||||
|
|
|
@ -12,7 +12,10 @@ const FakeResponse = struct {
|
|||
},
|
||||
};
|
||||
pub const Context = union(enum) {
|
||||
web_request: if (build_options.build_type == .exe_run) *FakeResponse else *std.http.Server.Response,
|
||||
web_request: switch (build_options.build_type) {
|
||||
.exe_run, .cloudflare => *FakeResponse,
|
||||
else => *std.http.Server.Response,
|
||||
},
|
||||
flexilib: struct {
|
||||
request: flexilib.ZigRequest,
|
||||
response: flexilib.ZigResponse,
|
||||
|
|
Loading…
Reference in New Issue
Block a user