allow cloudflare to be used for zig build
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m50s
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m50s
This commit is contained in:
parent
843bc56558
commit
e7a6aa5f04
|
@ -12,7 +12,10 @@ const FakeResponse = struct {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
pub const Context = union(enum) {
|
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 {
|
flexilib: struct {
|
||||||
request: flexilib.ZigRequest,
|
request: flexilib.ZigRequest,
|
||||||
response: flexilib.ZigResponse,
|
response: flexilib.ZigResponse,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user