-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
remove unneccesary astro glob #385
Conversation
❌ Deploy Preview for astro-docs-2 failed.
|
Hmm, this is a weird bug that I'm only seeing in build (not dev):
@delucis possibly related to this? withastro/astro#2480 |
I actually tried this approach initially! But there appears to be a bug with framework components when you pass the content this way. (Errors on build but appears to work in dev, IIRC.) My wild guess was: Astro uses imports to know to load various assets. When the "import" (via Obviously would be good to fix this, but FWIW I don't think I actually saw a huge perf difference between the two approaches. Maybe the glob is cached or something. The bigger issue was adb545d |
Hmm, the errors I was getting on that issue were quite different although I don't want to rule it out that they share something. |
Agreed, and to make matters worse I think that's being compounded by the same "why is Vite building every markdown file 3 times" issue 🤦 |
As this is still failing, I’ve marked it as a draft to help us triage the PRs tab. I’d love for this to work, so keeping this around for the glorious future in which the bug is fixed. |
Follow up to #365, I don't know if this actually helped our perf in dev, but it can't hurt :) Passing
props
fromgetStaticPaths
is the official way to pass data down to the page so that you don't need to re-request it a second time.There are two more perf improvements that I'd like to look into, separate from this, but that we appear to be blocked on:
[slug]
and[...slug]
: Tony is planning to look into movingdocs.astro.build -> astro.build/docs
next week, which we should combine with a big "finalize our slugs and remove all of our old redirects".cc @delucis