index.ts14 lines · main
1import assert from 'node:assert'
2
3import { assertSelfHosted } from '../util'
4import { FileSystemFunctionsArtifactStore } from './fileSystemStore'
5
6export function getFunctionsArtifactStore() {
7 assertSelfHosted()
8 assert(
9 process.env.EDGE_FUNCTIONS_MANAGEMENT_FOLDER,
10 'EDGE_FUNCTIONS_MANAGEMENT_FOLDER is required'
11 )
12
13 return new FileSystemFunctionsArtifactStore(process.env.EDGE_FUNCTIONS_MANAGEMENT_FOLDER)
14}