docs(build-id): add code block example (#3600)

Adds a module doc and code block to help satisfy JSR's scoring.
Suggestions for alternatives or improvements very welcome.

Part of #3597
This commit is contained in:
Christian Svensson
2025-11-04 16:02:53 +01:00
committed by GitHub
parent 42d7d9f23b
commit a801686e9c
+14
View File
@@ -1,3 +1,17 @@
/**
* Don't use this package directly. It's considered internal for Fresh.
*
* @example
* ```ts
* // `BUILD_ID` is based on the `DENO_DEPLOYMENT_ID` environment variable.
* ```
*
* @see https://fresh.deno.dev/docs/deployment/docker
*
* @module
* @private
*/
import { encodeHex } from "@std/encoding/hex";
export const DENO_DEPLOYMENT_ID: string | undefined = Deno.env.get(