merge dev_jacy: fix with-api-env.cjs CommonJS

This commit is contained in:
2026-07-07 23:35:03 +08:00
+4 -4
View File
@@ -1,7 +1,7 @@
import { config } from 'dotenv'; const { config } = require('dotenv');
import { spawnSync } from 'child_process'; const { spawnSync } = require('child_process');
import { existsSync } from 'fs'; const { existsSync } = require('fs');
import { resolve } from 'path'; const { resolve } = require('path');
const apiRoot = resolve(__dirname, '..'); const apiRoot = resolve(__dirname, '..');
const envFile = process.env.DUKANG_ENV_FILE ?? '.env.production'; const envFile = process.env.DUKANG_ENV_FILE ?? '.env.production';