Skip to content

fix(jobs): show job offers on production again#224

Merged
francescarpi merged 2 commits into
mainfrom
fix/jobs-glob-vite8
Jul 23, 2026
Merged

fix(jobs): show job offers on production again#224
francescarpi merged 2 commits into
mainfrom
fix/jobs-glob-vite8

Conversation

@dukebody

@dukebody dukebody commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Replace the jobs import.meta.glob extglob (!(_*)) with a plain *.md pattern so Vite 8 (Astro 7) can resolve job markdown files in production builds.
  • Draft offers (Fever, JetBrains, _plantilla-oferta) stay hidden via the existing draft !== true filter.

Why local ≠ production

Jobs used import.meta.glob('../data/jobs/!(_*).md'). That extglob worked on older Vite, but Astro 7 / Vite 8 uses tinyglobby and 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 *.md globs.

Note using pnpm dev with Astro 7 / Vite 8 still showed the offers, while pnpm build && pnpm preview does not.

@dukebody dukebody changed the title fix(jobs): fix(jobs): show job offers on production again fix(jobs): show job offers on production again Jul 23, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
@dukebody
dukebody force-pushed the fix/jobs-glob-vite8 branch from 5c7e582 to 61b4325 Compare July 23, 2026 05:10
@dukebody
dukebody requested a review from francescarpi July 23, 2026 05:10
@francescarpi
francescarpi merged commit d70a35f into main Jul 23, 2026
1 check passed
@francescarpi
francescarpi deleted the fix/jobs-glob-vite8 branch July 23, 2026 05:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants