mirror of
https://github.com/supabase/supabase.git
synced 2026-10-10 20:05:06 +03:00
## 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>
15 lines
424 B
TypeScript
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)
|
|
}
|