- 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
21 lines
563 B
JavaScript
21 lines
563 B
JavaScript
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" },
|
|
};
|
|
};
|