fix: proxy domain fal.run check

This commit is contained in:
Daniel Rochetti 2024-01-16 09:52:22 -08:00
parent 6cb27c0ca5
commit 6671386b15
No known key found for this signature in database
GPG Key ID: 791E89AB68BDD5DB
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@fal-ai/serverless-proxy",
"version": "0.7.1",
"version": "0.7.2",
"license": "MIT",
"repository": {
"type": "git",

View File

@ -9,7 +9,7 @@ const FAL_KEY_SECRET =
export type HeaderValue = string | string[] | undefined | null;
const FAL_URL_REG_EXP = /(\.fal\.(run|ai))$/;
const FAL_URL_REG_EXP = /(\.|^)fal\.(run|ai)$/;
/**
* The proxy behavior that is passed to the proxy handler. This is a subset of