fix(jobs): show job offers on production again#224
Merged
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
dukebody
force-pushed
the
fix/jobs-glob-vite8
branch
from
July 23, 2026 05:10
5c7e582 to
61b4325
Compare
francescarpi
approved these changes
Jul 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
import.meta.globextglob (!(_*)) with a plain*.mdpattern so Vite 8 (Astro 7) can resolve job markdown files in production builds._plantilla-oferta) stay hidden via the existingdraft !== truefilter.Why local ≠ production
Jobs used
import.meta.glob('../data/jobs/!(_*).md'). That extglob worked on older Vite, but Astro 7 / Vite 8 usestinyglobbyand does not support extglobs in production builds. The glob matched zero files on CI → empty jobs page online, while Rover still appeared locally. Sponsors/speakers were fine because they already use plain*.mdglobs.Note using
pnpm devwith Astro 7 / Vite 8 still showed the offers, whilepnpm build && pnpm previewdoes not.