Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reduce number of contentful api calls #46

Open
parasquid opened this issue Jul 16, 2024 · 3 comments
Open

reduce number of contentful api calls #46

parasquid opened this issue Jul 16, 2024 · 3 comments

Comments

@parasquid
Copy link
Member

right now we are not using as much api calls since the number of models in contentful is low.

what we can do is export the content via https://www.contentful.com/developers/docs/tutorials/cli/import-and-export/ then use that json to setup a small api mirror which the nextjs build system can then query.

this likely makes the website build a multi step process (export, run server, build) but theoretically it should prevent most of the api calls required to build the site

@parasquid
Copy link
Member Author

alternatively we can migrate over to https://payloadcms.com/docs/getting-started/installation and self host the headless cms ourselves

@parasquid
Copy link
Member Author

mentioning @ehvana here so you're aware :P

@parasquid
Copy link
Member Author

apparently payloadcms can be added into an existing app: https://payloadcms.com/docs/getting-started/installation#adding-to-an-existing-app

that means the cms together with the actual blog can be the same application. probably not something we want to do (since we are exporting to static html anyway) but something to consider if we ever need to build a site for a client that requires some cms capabilities.

@parasquid parasquid pinned this issue Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant