Skip to content

Commit

Permalink
feat: add local supabase env passing to payload
Browse files Browse the repository at this point in the history
  • Loading branch information
maneike committed Nov 21, 2024
1 parent 27ab3c8 commit 5713290
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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}`);
Expand Down

0 comments on commit 5713290

Please sign in to comment.