DEV Community

loading...

Discussion on: Write copy in Notion, export to JSON

logicalicy profile image
Mario Hayashi Author

If the redirects database / marketing data (what might these be?) were to be exported to JSON, how would it be integrated into your system? Would be keen to know! Thanks šŸ™‚

Thread Thread
vaclavhodek profile image
vaclavhodek

Basically, it's a table of target URL and destination URL.

Every 5 minutes, it's reloaded from the database. I can imagine, that we call some endpoint to get a fresh copy from the Notion. So anyone with access to the given notion document can add or update redirects and they are alive in no more than 5 minutes.

A similar situation applies for, e.g., this page: localazy.com/integrations

It's built statically but when the build process is invoked, the list of products along with their parameters (and there are many of them; some used for showing the products once logged in) are loaded from headless CMS and the page is rendered. Again, I can imagine calling an endpoint to get data from Notion.

Thread Thread
logicalicy profile image
Mario Hayashi Author

This is brilliant. Yes headless CMS has been on my mind, I feel it's quite relevant as you mention. I started with JSON output (for simplicity) but an API/making it headless is not a far fetch. Will have a think and nudge you for some additional feedback when I have more to share if that's ok? šŸ™‚

Thread Thread
vaclavhodek profile image
vaclavhodek

Sure, I will follow you to keep updated about your progress :-). Feel free to contact me! We can connect on LinkedIn: linkedin.com/in/vaclavhodek