PHP 8.2.30
Preview: constants.ts Size: 443 B
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/adminjs/src/backend/bundler/utils/constants.ts

import path from 'path'

export const NODE_ENV = process.env.NODE_ENV === 'production' ? 'production' : 'development'

const DEFAULT_TMP_DIR = '.adminjs'
export const ADMIN_JS_TMP_DIR = typeof process === 'object'
  ? process.env.ADMIN_JS_TMP_DIR || DEFAULT_TMP_DIR
  : DEFAULT_TMP_DIR

export const COMPONENTS_ENTRY_PATH = path.join(ADMIN_JS_TMP_DIR, 'entry.js')
export const COMPONENTS_OUTPUT_PATH = path.join(ADMIN_JS_TMP_DIR, 'bundle.js')

Directory Contents

Dirs: 0 × Files: 2

Name Size Perms Modified Actions
3.88 KB lrw-r--r-- 2026-02-28 00:32:00
Edit Download
443 B lrw-r--r-- 2026-02-28 00:32:02
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).