cal.pub0.org/.github
Rob Jackson 7a9a2fc76f
feat: Make database optional when building (#8561)
* Make database optional when building

Solves #3026 and #6780

We have a few app-store related pages that require a database connection at build time.

This change adds try-catch blocks in getStaticPaths or getStaticProps for those pages, and when no database is available we either:

- getStaticPaths: Respond with no paths, but fall back to rendering the pages on-demand
- getStaticProps: Respond with no data, but enable revalidation until a future request does respond with data

This makes Cal.com more compatible with typical Docker-based workflows, that do not expect external services to be available at build time. This includes Docker-based hosting providers, such as Cloudron (#3026).

* Change apps/categories/index to be server-rendered

* Update yarn.lock

* Update yarn.lock

* Update [category].tsx

---------

Co-authored-by: zomars <zomars@me.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: alannnc <alannnc@gmail.com>
Co-authored-by: Keith Williams <keithwillcode@gmail.com>
2023-05-31 03:04:06 +00:00
..
ISSUE_TEMPLATE Replace whatsmybrowser.org with Bird Eats Bug (#1787) 2022-02-16 22:30:57 +00:00
actions Update action.yml 2023-05-29 20:40:03 -07:00
matchers Improves reported type errors on CI (#7813) 2023-03-28 13:12:40 -07:00
workflows feat: Make database optional when building (#8561) 2023-05-31 03:04:06 +00:00
PULL_REQUEST_TEMPLATE.md Updated the PR template to not use checkboxes for 'Type of change' (#7960) 2023-03-28 10:43:27 +02:00
labeler.yml Labeler fixes 2023-01-12 08:52:21 -07:00