From 5713290e42e100a8bcf9a9681c233c1a5801ff27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Che=C5=82miniak?= Date: Thu, 21 Nov 2024 15:13:38 +0100 Subject: [PATCH] feat: add local supabase env passing to payload --- .../installMachine/installSteps/payload/runInstallCommand.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/core/installMachine/installSteps/payload/runInstallCommand.ts b/packages/core/installMachine/installSteps/payload/runInstallCommand.ts index a656ec1..47dde4e 100644 --- a/packages/core/installMachine/installSteps/payload/runInstallCommand.ts +++ b/packages/core/installMachine/installSteps/payload/runInstallCommand.ts @@ -1,7 +1,9 @@ import { execAsync } from '../../../utils/execAsync'; import { logger } from '../../../utils/logger'; +import { loadEnvFile } from './utils/loadEnvFile'; export const runInstallCommand = async () => { + loadEnvFile('../../supabase/.env'); await logger.withSpinner('payload', 'Installing to Next.js...', async (spinner) => { try { await execAsync(`echo y | npx create-payload-app --db postgres --db-connection-string ${process.env.DB_URL}`);