Commit Graph
25 Commits
Author SHA1 Message Date
tben ed788dff97 Add SSR bundle minify config 2026-10-17 15:03:30 +01:00
tbenandClaude Opus 5.5 23a309005a Add disable_seo config to keep preview deployments out of search engines
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-15 05:29:08 +01:00
tbenandClaude Opus 5.5 3a75880ae4 Date sitemap lastmod from the build pipeline; warn on skipped pages
- bunext build records when each page's client bundle hash last changed
  in .bunext/page-lastmod.json (sitemap.lastmod_file to relocate). The
  hash covers the page's whole import graph, so component edits re-date
  every page that uses them. The sitemap uses these dates as lastmod
- Add sitemap.default_lastmod
- BREAKING: use_file_lastmod now defaults to false (file mtimes are reset
  by checkouts); it is a fallback after the build record
- Warn when a page or __root.tsx is skipped because its default export
  is not at the start of a line (e.g. export { Page as default })
- Replace leaking module mocks in tests (log, grab-root-file-path) with
  spies and fixtures

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-14 18:25:38 +01:00
tbenandClaude Opus 5.5 be4bebaa22 Add robots.txt generation and sitemap chunking
- bunext sitemap now writes public/robots.txt (configurable via the
  robots config key; robots: false or --no-robots to skip). Hand-written
  robots.txt files are never overwritten without a robots config
- Large sitemaps are split into public/sitemap-chunks/sitemap-N.xml
  (sitemap.chunk_size, default 10,000, max 50,000; 50MB per file) with
  sitemap.xml as a sitemap index; stale chunks are cleaned up
- Export bunextGenerateRobotsTxt
- Run tests in publish.sh

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-14 18:02:52 +01:00
tbenandClaude Opus 5.5 d9de858439 Add sitemap generation and bunext sitemap command
- Add generateSitemap util (exported as bunext.bunextGenerateSitemap)
  that builds sitemap.xml from static pages, with exclude patterns,
  additional paths (array or sync/async function), lastmod from file
  mtime, trailing slash, and default changefreq/priority options
- Let page .server.ts files export a `sitemap` function to list URLs
  for dynamic routes, or override a static page's entry
- Add `bunext sitemap` command reading `sitemap` from bunext.config.ts,
  writing public/sitemap.xml by default, with --output/--origin flags
- Fix handle-routes test leaking a grab-router module mock into
  bunext-req-handler tests; set global.BUNEXT_ROUTER instead
- Ignore /.tmp
- Document sitemap usage in README and CLAUDE.md

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-14 17:41:21 +01:00
tben 2335c60cc3 Refactor artifacts to use relative directory for build step and retrieval 2026-09-23 05:08:54 +01:00
tben 2803dfa0be Updates 2026-09-22 16:52:54 +01:00
tben 87948340b0 Add public envs 2026-08-03 08:42:33 +01:00
tben 4b3a4dbc77 Bugfix. Extract react imports from main bundler to vendor static files 2026-04-08 05:39:11 +01:00
tben 57957b89a4 Update README.md 2026-04-05 18:13:52 +01:00
tben 336fa812a5 Update bundler logic 2026-03-24 21:37:41 +01:00
tben 342f56f3f5 Server Refactor 2026-03-24 07:17:03 +01:00
tben 4b8b610e32 Updates 2026-03-23 07:42:00 +01:00
tben e2df3256f4 Bogfix: update server module stripping function. 2026-03-22 12:32:15 +01:00
tben a9af20a8b2 Major Bugfix. Fix server component client compatibility 2026-03-22 10:34:30 +01:00
tben 070e6860d8 Updates 2026-03-21 17:08:04 +01:00
tben 13bd8bb851 Update README.md 2026-03-21 14:36:32 +01:00
tben 5c53e94a3e Bugfixes. Documentation update. 2026-03-21 08:10:02 +01:00
tben 7ef114ee70 Handle browser Errors. 2026-03-21 06:34:32 +01:00
tben 21b2eb8202 Update documentaion. 2026-03-20 13:22:51 +01:00
tben 39f802d26a Update documentaion. 2026-03-20 12:46:03 +01:00
tben f6db3ab866 Bugfix Caching 2026-03-17 22:00:11 +01:00
tben 32e914fdc1 Add Caching 2026-03-17 21:47:12 +01:00
tben 35930857fd Update API routes function. Add middleware. Update README.md 2026-03-17 19:38:06 +01:00
tben 8177df7dd3 First Commit 2025-11-05 07:12:15 +01:00