Skip to content

Commit

Permalink
feat: add well-known domain (#6774)
Browse files Browse the repository at this point in the history
* feat: add .well-known fetch

* chore: detect specific directory

* refactor: use combined regex
  • Loading branch information
KenLSM authored Oct 5, 2023
1 parent a039a6d commit 2f8caab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/loaders/express/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,10 @@ const loadExpressApp = async (connection: Connection) => {

// If requests for known static asset patterns were not served by
// the static handlers above, middleware should try to fetch from s3 static bucket or else return 404s
app.get(/^\/(public|static)\//, catchNonExistentStaticRoutesMiddleware)
app.get(
/^\/(public|static|\.well-known)\//,
catchNonExistentStaticRoutesMiddleware,
)

// Requests for root files (e.g. /robots.txt or /favicon.ico) that were
// not served statically above will also return 404
Expand Down

0 comments on commit 2f8caab

Please sign in to comment.