22 lines
734 B
TypeScript
22 lines
734 B
TypeScript
// NOSE developer feature.
|
|
//
|
|
// Show some debugging information.
|
|
|
|
import { NOSE_STARTED, NOSE_SYS_BIN, NOSE_DIR, GIT_SHA } from "@/config"
|
|
import { highlightToHTML } from "../lib/highlight"
|
|
|
|
export default function () {
|
|
return highlightToHTML([
|
|
`NODE_ENV="${process.env.NODE_ENV || "(none)"}"`,
|
|
`NO_DNS="${process.env.NO_DNS || "(none)"}"`,
|
|
`BUN_HOT="${process.env.BUN_HOT || "(none)"}"`,
|
|
`PORT="${process.env.PORT || "(none)"}"`,
|
|
`USER="${process.env.USER || "(none)"}"`,
|
|
`PWD="${process.env.PWD || "(none)"}"`,
|
|
`NOSE_STARTED=${NOSE_STARTED}`,
|
|
`NOSE_SYS_BIN="${NOSE_SYS_BIN}"`,
|
|
`NOSE_DIR="${NOSE_DIR}"`,
|
|
`GIT_SHA="${GIT_SHA}"`,
|
|
].join("\n"))
|
|
}
|