From 6671386b15133c8c24852479de27a34b2b8629e5 Mon Sep 17 00:00:00 2001 From: Daniel Rochetti Date: Tue, 16 Jan 2024 09:52:22 -0800 Subject: [PATCH] fix: proxy domain fal.run check --- libs/proxy/package.json | 2 +- libs/proxy/src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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