mirror of
https://github.com/supabase/supabase.git
synced 2026-09-06 09:59:03 +08:00
15 lines
424 B
TypeScript
15 lines
424 B
TypeScript
import assert from 'node:assert'
|
|
|
|
import { assertSelfHosted } from '../util'
|
|
import { FileSystemFunctionsArtifactStore } from './fileSystemStore'
|
|
|
|
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)
|
|
}
|