Skip to content

Built for people who want to own their automations. Join the waitlist for an invite.

Package listing

@kody/netlify

src/smoke-test.js

15 lines · 588 B · JavaScript
import { smokeTest } from './netlify.js'

/**
 * Verify Netlify credentials by reading a trimmed `/user` profile.
 * Without credentials, returns setup URLs instead of throwing.
 * @param {Object} [input]
 * @param {boolean} [input.dryRun] Skip the live `/user` call.
 * @returns {Promise<{ ok: true, live: boolean, user?: Record<string, unknown>, setup: object }>}
 * @example
 * import smokeTest from 'kody:@kody/netlify/smoke-test'
 * const result = await smokeTest({ dryRun: true })
 */
export default async function smokeTestEntrypoint(input = {}) {
	return await smokeTest(input)
}