SupabaseFunctionExtension

Extensions for configuring supabase function plugin.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
abstract val envFile: RegularFileProperty

Env file for function serving. By default, the plugin will use a .env.local that is expected to be under the supabase directory. The file will only be used if it exists.

Link copied to clipboard
abstract val functionName: Property<String>

The name of the supabase function. Default to the project name.

Link copied to clipboard
abstract val importMap: Property<Boolean>

Whether to include import_map.json in function serve and deploy task. Default to true.

Link copied to clipboard
abstract val packageName: Property<String>

Name of the package in which the kotlin's main function resides.

Link copied to clipboard
abstract val projectRef: Property<String>

Optional remote project reference for function deployment task. No default value.

Link copied to clipboard

Configure the run configuration to generate for IntelliJ based IDEs.

Link copied to clipboard
abstract val supabaseDir: DirectoryProperty

Supabase directory location. By default, the plugin expects this directory to be under the root project directory.

Link copied to clipboard
abstract val verifyJwt: Property<Boolean>

Whether a valid JWT is required. Default to true.

Functions

Link copied to clipboard

Allows to configure runConfiguration in a DSL manner.