A
A
Arthur2020-06-07 19:34:34
JavaScript
Arthur, 2020-06-07 19:34:34

How to programmatically create pages without rebuilding the Gatsby site?

There is a site where articles are published, each article has a detailed page. Articles are taken from Hasura. Detail pages are created at build time using CreatePages. I add an article to hasura and it appears on the site, but for its detail page to appear, I need to start rebuilding. Please tell me how to create programmatically new pages without rebuilding. Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
abberati, 2020-06-07
@abberati

No way. This is the essence of Gatsby. If you want to add pages without rebuilding (build is "build", not "build"), then you need a dynamic site, not a static one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question