Support for Starlight in an Nx monorepo style setting #2198
Replies: 5 comments 7 replies
-
Thanks for your feedback 🙌
I haven't used Nx in a very long time so this may be a dumb question, but could you elaborate on this? What do you mean by "starlight does not work when not in root", what is the exact issue? Starlight itself is used for its own documentation which lives in As far as I can imagine, the only difference when installing Starlight in an existing monorepo is that you would skip the git inizialization step (as you're already in a git repository) when running Again, I may be missing something, so please let me know if there is something specific to Nx that makes it not work in this case. |
Beta Was this translation helpful? Give feedback.
-
Hi @HiDeoo Guessing it has something to do with paths. I am running |
Beta Was this translation helpful? Give feedback.
-
Hi @delucis Here you go. Copied directly from your examples directory: import { defineCollection } from 'astro:content';
|
Beta Was this translation helpful? Give feedback.
-
Hi both, Here is a repo that was taken from a larger repo with everything removed except the Astro app: |
Beta Was this translation helpful? Give feedback.
-
Thank you Yes we are 💯 Angular on the Front-End and wanted to use Astro Islands to render some of our components in our documentation. Will have a look at Angular Three. If it gets the job done, I'm a happy camper! 🍻 |
Beta Was this translation helpful? Give feedback.
-
What version of
starlight
are you using?0.25.x
What is your idea?
Currently, starlight does not work when not in root. General discussion about this has been happening here: nxtensions/nxtensions#33.
Is there a configuration starlight could expose that would allow it to run under ./apps/astro-app instead of root?
Why is this feature necessary?
Nx supports Astro but the next level of support needs to come from theme creators.
Put them all together in a monorepo, you theme can be the playground for which to embed any type of dynamic component using Islands. Theme creator would get access to enterprise customers who mostly use monorepos and want their code all in one place.
Do you have examples of this feature in other projects?
No response
Participation
Beta Was this translation helpful? Give feedback.
All reactions