diff --git a/libs/proxy/package.json b/libs/proxy/package.json index b0b0174..c3c46c1 100644 --- a/libs/proxy/package.json +++ b/libs/proxy/package.json @@ -1,6 +1,6 @@ { "name": "@fal-ai/serverless-proxy", - "version": "0.7.1", + "version": "0.7.2", "license": "MIT", "repository": { "type": "git", diff --git a/libs/proxy/src/index.ts b/libs/proxy/src/index.ts index dede16d..c8b365c 100644 --- a/libs/proxy/src/index.ts +++ b/libs/proxy/src/index.ts @@ -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