Files
supabase/apps/studio/lib/api/self-hosted/functions/index.ts
T
1862b71745 feat(studio-local): functions management api - list functions (#40690)
## What is the current behaviour?

Functions page on self-hosted differs from Platform

## What is the new behaviour?

Adds the possibility to see a list of edge-functions in Self-Host
version.

## Summary by CodeRabbit

* **New Features**
* Added self-hosted edge functions support with filesystem-based
artifact listing and a new API endpoint to list local functions.
* Improved functions UI: unified view, enhanced search and adjacent sort
controls, and clearer local-hosting guidance.

* **Chores**
* Added environment configuration and docker volume for edge functions
management.
* Updated build/task config to pass through edge functions env and
include contentlayer outputs.

Co-authored-by: Ali Waseem <waseema393@gmail.com>
Co-authored-by: Charis Lam <26616127+charislam@users.noreply.github.com>
Co-authored-by: Terry Sutton <saltcod@gmail.com>
2026-01-30 08:00:21 +08:00

15 lines
424 B
TypeScript

import assert from 'node:assert'
import { FileSystemFunctionsArtifactStore } from './fileSystemStore'
import { assertSelfHosted } from '../util'
export function getFunctionsArtifactStore() {
assertSelfHosted()
assert(
process.env.EDGE_FUNCTIONS_MANAGEMENT_FOLDER,
'EDGE_FUNCTIONS_MANAGEMENT_FOLDER is required'
)
return new FileSystemFunctionsArtifactStore(process.env.EDGE_FUNCTIONS_MANAGEMENT_FOLDER)
}