Skip to content

Commit

Permalink
fix: ignore dollar files as routes (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
yusukebe authored Jun 16, 2024
1 parent 4bba957 commit 893456a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/with-defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export const createApp = <E extends Env>(options?: ServerOptions<E>) => {
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,
Expand Down

0 comments on commit 893456a

Please sign in to comment.