UNPKG

medusajs-launch-utils

Version:

Build and launch utilities for Medusajs monorepo projects

12 lines (9 loc) 382 B
#!/usr/bin/env node const { checkBackend } = require('../src/awaitBackendReady'); const backendUrl = (process.env.NEXT_PUBLIC_MEDUSA_BACKEND_URL || 'http://localhost:9000') + '/key-exchange'; checkBackend(backendUrl) .then(() => console.log('Backend is ready')) .catch((error) => { console.error('Error waiting for backend:', error); process.exit(1); });