fix(api): use CommonJS in with-api-env.cjs for Prisma deploy
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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';
|
||||||
|
|||||||
Reference in New Issue
Block a user