Compare commits

..

2 Commits

Author SHA1 Message Date
e7a6aa5f04
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
2023-10-20 22:44:30 -07:00
843bc56558
use final_script in deployment 2023-10-20 22:44:12 -07:00
2 changed files with 5 additions and 2 deletions

View File

@ -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(),
);

View File

@ -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,