index.ts 424 B

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