function deployScriptCode
deployScriptCode(
code: string,
scriptId?: number | string,
): Promise<BunnyApiResult>

Upload and publish new script code to a Bunny edge script (defaults to this host's own script when scriptId is omitted).

Parameters

code: string
optional
scriptId: number | string

Return Type

Promise<BunnyApiResult>

Usage

import { deployScriptCode } from "docs/embed.ts";