feat: big-suite terraform example + provider nodejs zip fix
- examples/big-suite: E-Commerce 10 functions, 6 layers, real depends_on - provider: nodejs packages now wrapped in ESM zip (buildJSDeployZip) - provider: loadPackageLiteral reads raw file, nodejs zip via source_dir - all 10 functions verified working: python/node/ruby/go runtimes
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
exports.handler = async (ctx) => {
|
||||
const start = Date.now();
|
||||
|
||||
return {
|
||||
body: JSON.stringify({
|
||||
status: "ok",
|
||||
service: "ecom-platform",
|
||||
version: "1.0.0",
|
||||
uptime_check: "pass",
|
||||
checks: {
|
||||
runtime: "ok",
|
||||
memory_mb: process.memoryUsage ? Math.round(process.memoryUsage().heapUsed / 1024 / 1024) : null,
|
||||
node_version: process.version || "unknown",
|
||||
},
|
||||
timestamp: new Date().toISOString(),
|
||||
response_ms: Date.now() - start,
|
||||
}),
|
||||
headers: { "Content-Type": "application/json" },
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user