index.ts14 lines · main
| 1 | import assert from 'node:assert' |
| 2 | |
| 3 | import { assertSelfHosted } from '../util' |
| 4 | import { FileSystemFunctionsArtifactStore } from './fileSystemStore' |
| 5 | |
| 6 | export 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 | } |