We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a18e60 commit 6680bdeCopy full SHA for 6680bde
src/utils/env.ts
@@ -1,9 +1,12 @@
1
import fs from 'fs';
2
import { Context } from 'hono';
3
import { env, getRuntimeKey } from 'hono/adapter';
4
-import path from 'path';
5
6
const isNodeInstance = getRuntimeKey() == 'node';
+let path: any;
7
+if (isNodeInstance) {
8
+ path = await import('path');
9
+}
10
11
export function getValueOrFileContents(value?: string, ignore?: boolean) {
12
if (!value || ignore) return value;
0 commit comments