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';
import { spawnSync } from 'child_process';
import { existsSync } from 'fs';
import { resolve } from 'path';
const { config } = require('dotenv');
const { spawnSync } = require('child_process');
const { existsSync } = require('fs');
const { resolve } = require('path');
const apiRoot = resolve(__dirname, '..');
const envFile = process.env.DUKANG_ENV_FILE ?? '.env.production';