- Implemented routes for cnb-board to fetch live environment configurations, repository info, build info, pull request info, NPC info, and comment info. - Created a utility function to execute shell commands. - Added a check to determine if the environment is a CNB environment. - Introduced a method to retrieve live markdown content with detailed service access information. - Enhanced system information retrieval with CPU, memory, and disk usage metrics. - Established a module structure for better organization of cnb-board related functionalities.
6 lines
120 B
TypeScript
6 lines
120 B
TypeScript
import { useKey } from "@kevisual/context";
|
|
|
|
export const isCnb = () => {
|
|
const CNB = useKey('CNB');
|
|
return !!CNB;
|
|
} |