From 671ce38b525400fae27a01000c93a73fe09fca2f Mon Sep 17 00:00:00 2001 From: Yusuke Wada Date: Sun, 16 Jun 2024 17:15:17 +0900 Subject: [PATCH] fix: ignore dollar files as routes --- src/server/with-defaults.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/with-defaults.ts b/src/server/with-defaults.ts index 5481cf8..1fc8392 100644 --- a/src/server/with-defaults.ts +++ b/src/server/with-defaults.ts @@ -32,8 +32,8 @@ export const createApp = (options?: ServerOptions) => { options?.ROUTES ?? import.meta.glob( [ - '/app/routes/**/!(_*|*.test|*.spec).(ts|tsx|md|mdx)', - '/app/routes/.well-known/!(_*|*.test|*.spec).(ts|tsx|md|mdx)', + '/app/routes/**/!(_*|$*|*.test|*.spec).(ts|tsx|md|mdx)', + '/app/routes/.well-known/!(_*|$*|*.test|*.spec).(ts|tsx|md|mdx)', ], { eager: true,