Skip to content

v0.1.5

@orbivision orbivision tagged this 25 May 17:27
- Add src/pages/preview.tsx: client-side page that fetches draft content
  from WPGraphQL using the preview token provided by WP Gatsby plugin,
  then renders it with the same Layout/HeroHeader components as the
  published templates. Handles posts and pages, with clear error states
  for expired tokens.
- Add src/pages/404.tsx: proper not-found page so unrecognized URLs
  (including WordPress View Post links before the redirect fires)
  show an error rather than silently loading the home page.
- Add createRedirect in gatsby-node.js for every post: redirects from
  the WordPress permalink URI (e.g. /2024/01/my-post/) to the Gatsby
  /blog/ path so View Post in WP Admin works correctly.
- Add gatsby-plugin-netlify (via require.resolve so it resolves from
  the theme's node_modules) so createRedirect entries are written to
  public/_redirects at build time. All consuming sites pick this up
  automatically via Gatsby theme plugin merging.
- Add rimraf@^3.0.2 to theme dependencies (same fix applied to site
  repos in ORBI-7; needed here too for npm link / dev workflows).
- Bump version to 0.1.5.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Assets 2
Loading