== undefined) { + return defaultValue + } + + throw new Error(`Config error: missing required env var "${key}"`) +} diff --git a/lib/get-preview-images.ts b/lib/get-preview-images.ts new file mode 100644 index 0000000..0a81346 --- /dev/null +++ b/lib/get-preview-images....