Alex van Andel and GitHub
90a42c37fd
chore: Remove next-collect package ( #25146 )
2025-11-19 13:54:26 +00:00
Alex van Andel and GitHub
4282cd221c
fix: NextJS does not support non-ascii in NextResponse headers ( #25148 )
...
* fix: NextJS does not support non-ascii in NextResponse headers
* Fixed type error
2025-11-14 01:27:17 +00:00
Alex van Andel and GitHub
b5dcc7a991
fix: change edge runtime to prevent weird header override in unkey sdk ( #25140 )
2025-11-13 22:47:07 +00:00
Alex van Andel and GitHub
530cb94f0b
fix: make identifier url safe 2 ( #25112 )
...
* fix: Make identifier for rate limit URL safe
* fix: Make identifier for rate limit URL safe using hasing
2025-11-13 01:42:13 +00:00
Alex van Andel and GitHub
d4ef6e83cf
fix: Make identifier for rate limit URL safe ( #25111 )
2025-11-13 01:20:05 +00:00
1d6959c4ac
chore: system wide ratelimit per path ( #25080 )
...
* chore: Add system wide rate limiting
* Handle and convert HttpError to 429
* Make algo 32-bit to prevent <ES2020 error + fix sms manager unit test
* Change core to common to go from 10 requests per minute to 200
* Remove redundant function
* Fix integration tests
* Make sure we allow all legal POST routes
* Allow tRPC post calls
* Add matcher tests on middleware
* Add matcher tests on middleware
* Fix matcher to not use regex
* Fix missing POST allow rule for /api/auth/callback/credentials
* Missed the api/book/event endpoints
* Add missing pages/api routes
* Remove POST middleware for now, very risky
* Remove tests for POST protection
---------
Co-authored-by: Volnei Munhoz <volnei.munhoz@gmail.com >
2025-11-12 22:01:59 +00:00
Alex van Andel and GitHub
d72e15649f
chore: Remove maintenance mode middleware ( #23251 )
2025-08-21 11:12:54 +00:00
Hariom Balhara and GitHub
f905ae7502
fix: Add CSP back to login page ( #22688 )
...
* Middleware only logic to add CSP header as Next.js App Router doesnt allow setting header in server component
* add tests
* Remove nonce from Page Router and fix ts issues
* Add checkly test
2025-07-26 01:38:20 +01:00
f7fd1c4402
feat: remove unused x-cal-timezone header and middleware matcher ( #22398 )
...
* feat: remove unused x-cal-timezone header and middleware matcher
- Remove x-cal-timezone header setting from middleware.ts
- Remove x-cal-timezone header setting from createNextApiHandler.ts
- Remove /api/trpc/:path* from middleware matcher
- Eliminates ~50M edge requests per month for unused functionality
- All timezone handling uses browser detection and localStorage instead
Co-Authored-By: keith@cal.com <keithwillcode@gmail.com >
* update POST_METHODS_ALLOWED_API_ROUTES
* test: remove api/trpc POST validation test
- Remove test for /api/trpc/book/event POST requests since /api/trpc/:path* was removed from middleware matcher
- Keep test for /api/auth/signup which is still processed by middleware
Co-Authored-By: keith@cal.com <keithwillcode@gmail.com >
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: hbjORbj <sldisek783@gmail.com >
2025-07-10 22:16:25 +00:00
Benny Joo and GitHub
f576979345
perf: remove unnecessary routes from middleware ( #21089 )
...
* perf: Remove unnecessary routes from middleware
* remove tests not needed
2025-05-05 11:47:27 -04:00
Benny Joo and GitHub
b32b31ccdc
perf: SSR for /teams ( #20824 )
...
* finish
* improve
* refactor
* add revalidations
* /settings/teams is not needed
* refactor
* rename
* redundant type casting
2025-04-23 15:09:25 +01:00
Benny Joo and GitHub
c00e8cfa54
perf: Fetch data server-side for Api Keys page ( #20677 )
...
* server-side fetching for api keys page
* refactor billing page
* fix
2025-04-22 18:20:41 +00:00
69efc26f36
perf: slim down middleware matcher ( #20735 )
...
* wip
* wip
* refactor
* add pathname
* fix
* fix: manually construct pathname for metadata functions
Co-Authored-By: benny@cal.com <benny@cal.com >
* fix: add pathname parameter to all metadata functions
Co-Authored-By: benny@cal.com <benny@cal.com >
* fix: add pathname parameter to remaining metadata functions
Co-Authored-By: benny@cal.com <benny@cal.com >
* fix
* fix
* fix type checks
* Refactor
* fix
* fix
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: benny@cal.com <benny@cal.com >
2025-04-17 19:55:01 -07:00
Benny Joo and GitHub
7cdc78d02d
update middleware ( #20726 )
2025-04-16 17:44:25 +00:00
134086f229
perf: fetch data server side for /settings/webhooks ( #20583 )
...
* update client components
* update server components
* update middleware
* fix
* fix
---------
Co-authored-by: Keith Williams <keithwillcode@gmail.com >
2025-04-07 18:21:13 +00:00
Benny Joo and GitHub
21e7ac3cbe
fix: middleware config matcher ( #20450 )
...
* fix: middleware config matcher - ending slash
* improve comment
2025-03-30 23:02:20 -03:00
Benny Joo and GitHub
63dfc3376c
chore: remove empty path from middleware matcher ( #19860 )
2025-03-09 15:38:04 +00:00
Benny Joo and GitHub
efd427831d
chore: early return for next.js static assets ( #19678 )
2025-03-03 15:35:42 -03:00
Benny Joo and GitHub
5f5cfaf7c7
perf: improve matching paths in middleware ( #19491 )
...
* perf: exclude next native paths from going through middleware
* fix build error
* fix
* fix
2025-02-24 16:53:06 +00:00
Benny Joo and GitHub
b6d8dc0bd6
wip ( #19446 )
2025-02-21 16:51:24 +00:00
01fc501cb9
chore: Block POST requests to all page routes except a whitelist ( #19346 )
...
* chore: block POST requests to next.js routes except a whitelist
* update config.matcher
---------
Co-authored-by: Keith Williams <keithwillcode@gmail.com >
2025-02-20 17:19:35 -03:00
Benny Joo and GitHub
8a4b03833d
chore: remove org/team booking routes from middleware ( #19349 )
...
* chore: remove user routes from middleware
* chore: remove org and team routes from middleware
2025-02-20 15:30:13 -03:00
Benny Joo and GitHub
3221379584
chore: remove user routes from middleware ( #19345 )
2025-02-20 14:39:40 -03:00
dc7a1c4680
chore: migrate /apps/routing-forms/[...pages] to App Router ( #18956 )
...
* wip
* fix
* fix
* refactor
* rename to routingServerSidePropsConfig
* refactor
* refactor
* add routing-link to useIsBookingPage hook
* remove Head component
* fix
* redirect user to apps/routing-forms/forms if user goes to apps/routing-forms
* refactor
* remove log
* remove client component not needed
* clean up code
* remove unneeded metadata
* clean up further
* clean up further 2
* fix type check
* routing-link does not need shell
* Fix title for Routing Form public link and also remove any
* Remove ; in HTML
* Remove unnecessary page reload
---------
Co-authored-by: Hariom Balhara <hariombalhara@gmgmail.com >
2025-02-17 11:15:54 +05:30
Benny Joo and GitHub
2840d64197
chore: migrate user booking pages to App Router ( #19069 )
...
* add user pages to config.matcher in middleware
* add app router user booking pages
* remove HeadSeo from users-public-view component
* remove pages router user booking pages
* fix type check
* fix embed
* fix test
* chore: remove BookerSEO from users-type-public-view
* fix
2025-02-07 16:52:56 -05:00
Benny Joo and GitHub
8205431640
migrate /auth/sso pages ( #18951 )
2025-01-28 21:49:06 +00:00
Benny Joo and GitHub
377d4e5bfd
migrate / index page ( #18960 )
2025-01-28 20:33:00 +01:00
Benny Joo and GitHub
ce4c9dfc9a
chore: migrate /auth/saml-idp ( #18943 )
2025-01-28 20:32:12 +01:00
Benny Joo and GitHub
9ad45bb477
chore: migrate /auth/setup ( #18941 )
2025-01-28 11:34:52 -05:00
Benny Joo and GitHub
a1e4959fb7
chore: migrate /auth/verify-email-change ( #18942 )
2025-01-28 11:34:39 -05:00
Benny Joo and GitHub
3f622fe277
chore: migrate /auth/verify ( #18902 )
...
* migrate /auth/verify page
* update middleware
2025-01-27 10:59:26 +01:00
Benny Joo and GitHub
ed3579c5c7
chore: migrate /auth/logout ( #18901 )
...
* migrate /auth/verify-email page
* update middleware
* migrate /auth/logout page
2025-01-27 14:22:33 +05:30
Benny Joo and GitHub
2f9beed450
chore: migrate /apps/installation pages ( #18870 )
...
* migrate apps/installation pages
* fix test
2025-01-26 23:04:30 +01:00
Benny Joo and GitHub
828940b4d6
chore: app router - /payment pages ( #18152 )
...
* remove Head from payment page comp
* remove route from pages router
* move out of future folder
* add to config.matcher
* remove unneeded code
* update middleware
* fix
* fix
2025-01-25 13:23:41 -05:00
Benny Joo and GitHub
0dab3e1a6d
chore: migrate /apps/categories pages ( #18871 )
...
* migrate apps/categories pages
* remove pages dir
2025-01-25 18:45:59 +01:00
Benny Joo and GitHub
30e576377a
migrate /auth/verify-email page ( #18876 )
2025-01-24 21:20:36 +00:00
Benny Joo and GitHub
a069af715e
chore: migrate /apps/installed pages ( #18869 )
2025-01-24 10:41:24 -05:00
Benny Joo and GitHub
91225c03f3
chore: migrate org domain /[user] page ( #18715 )
...
* chore: migrate org domain [user] page
* fix type checks
2025-01-23 19:48:49 +01:00
Benny Joo and GitHub
0f7ecb3345
chore: migrate low-risk 3 /auth pages to App Router ( #18753 )
...
* add i18n string
* Update config.matcher in middleware
* migrate auth/oauth2/authorize
* migrate auth/platform/authorize
* migrate auth/signin
2025-01-21 10:41:00 +01:00
Benny Joo and GitHub
de05e8e989
chore: migrate /auth/error ( #18730 )
...
* migrate auth/error
* fix
* fix type check
2025-01-17 06:46:47 -05:00
Benny Joo and GitHub
ce87de4fc7
fix: Revert - chore: app router - all sub-pages in /apps #16976 ( #18702 )
...
* revert
* add incomplete-booking
2025-01-15 21:12:18 -03:00
Benny Joo and GitHub
cce6e83578
chore: migrate /org team pages and team type pages and user type page ( #18668 )
2025-01-15 09:21:21 +00:00
Benny Joo and GitHub
5ccf5e6be8
chore: migrate /team booking pages ( #18656 )
...
* wip
* remove pages/team/[slug]
* fix tests
* fix tests 2
2025-01-14 23:48:41 +00:00
07085b9ffb
chore: clean up config.matcher in middleware ( #18638 )
...
Co-authored-by: Alex van Andel <me@alexvanandel.com >
2025-01-14 10:24:36 +00:00
Benny Joo and GitHub
113dc5fca6
chore: try using custom 404 in pages/_error ( #18622 )
2025-01-13 11:35:10 +00:00
Benny Joo and GitHub
0befdde5d7
chore: gracefully handle 404s from pages router's dynamic pages + tests ( #18618 )
...
* restore pages/_error
* set custom header in pages/_error
* handle it in middleware
* add test
* remove logs
* better test description
2025-01-13 15:46:56 +05:30
Benny Joo and GitHub
b3ed6e39e3
chore: redirect to /500 if pathname does not exist + better error handling ( #18615 )
...
* fix lint error
* fix booking page and better error handling
2025-01-13 00:04:36 +00:00
62b753afba
chore: app router 404 page ( #18597 )
...
* wip
* wip
* fix not found page
* render middleware for /settings pages
* fix
* remove global-error page
* add metadata to not-found page
* make not-found page static
* remove 404
* adding not-found to middleware is not necessary
* add every routes to config.matcher
* fix test
* fix style
* use i18n string
* fix tests
* fix
* fix
* revert unneeded changes
* fix
* fix
* fix
* fix style
* fix
* remove 404
* remove log
* fix
* fix
* fix
* fix
* better naming
* parallel testing
---------
Co-authored-by: Benny Joo <sldisek783@gmail.com >
2025-01-11 02:42:08 +00:00
bb40b2f6bf
chore: app router - all sub-pages in /apps ( #16976 )
...
* chore: apps/[slug] remove pages router
* remove apps/[slug] pages from /future
* chore: apps/installed remove pages router
* chore: apps/installation remove pages router
* remove Head element
* fix metadata
* fix test
* fix another test
* chore: apps/categories remove pages router
* revert unneeded changes
* update middleware
* Remove <Head>
* remove unused import and code
* remove unused import and code again
* fix
* fix category page
* add split icon
* add /routing paths to middleware matcher
* wip
* remove HeadSeo from App.tsx
* clean up head-seo test
* add generateAppMetadata
* use generateAppMetadata in apps/[slug] page
* delete file
* remove log
* fix
* fix
* fix apps/installed pages
* fix cateogires pages
* fix
* fix imports
* wip
* fix
* fix
* fix metadata
* fix
* redirect /apps/routing-forms to /routing
* replace all usages of /apps/routing-forms to /routing
* better naming
* /routing -> /routing/forms
* fix
* fix
* fix
* fix
* remove backPath as it is irrelevant when withoutMain is true
* fix type checks
* fix type check in apps/[slug]
* refactors
* fix
* fix test
* fix
* fix
* fix
* Replace multiple leading slashes with a single slash
* migrate routing-forms too
* add re routing
* fix
* add redirection
---------
Co-authored-by: Peer Richelsen <peeroke@gmail.com >
Co-authored-by: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com >
2025-01-10 20:16:11 -05:00
Benny Joo and GitHub
e6d76b630c
chore: Revert "chore: app router - /team, /org, /[user] booking pages (excl. embeds) ( #18186 ) ( #18526 )
2025-01-08 11:19:45 -03:00