#Monorepo shared pages

3 messages · Page 1 of 1 (latest)

sinful ginkgo
#

Is it possible to have shared pages in monorepo and use it in two astro pages?

vocal laurelBOT
#

Hi @sinful ginkgo. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

I'm sorry, but the knowledge sources do not contain explicit information about sharing pages between multiple Astro projects in a monorepo setup. The documentation does mention that when working with Astro in a monorepo, dependencies should be added to each project's own package.json, or managed at the root with special configuration for bundling dependencies. However, it does not address sharing actual page files (e.g., .astro files in src/pages) between multiple Astro projects or how to set this up in a monorepo context Adding dependencies to Astro in a monorepo.

If you need to share code, the documentation covers sharing components or layouts, but not entire pages. For now, you may need to duplicate page files or look for community solutions outside the official documentation.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: