next-drupal-starterkit

Next.js for Drupal multilingual template by Wunder

GPL-2.0 License

Stars
87
Committers
13

Bot releases are visible (Hide)

next-drupal-starterkit - v2.6.0 Latest Release

Published by vermario 2 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/wunderio/next-drupal-starterkit/compare/v2.5.0...v2.6.0

next-drupal-starterkit - v2.5.0

Published by vermario 4 months ago

[2.5.0] 10.6.2024

  • Add DDEV support
  • Drupal 10.2.6 and Drush 1.5.2
  • Update the graphql_compose module to 2.1.0
  • Add a paragraph to display an arbitrary list of articles
  • Update npm dependencies
  • Run graphql-codegen with build/dev scripts, rather than committing the result
next-drupal-starterkit - v2.4.0

Published by vermario 5 months ago

[2.4.0] 22.5.2024

  • Add separate consumer for previewing, prevent anonymous access to the GraphQL endpoint
  • Add authentication to grapqhl-codegen npm operations

This release improves security by closing off the GraphQL endpoint to unauthenticated requests.
Instead, we now setup and use two separate consumer entities associated with user roles with the appropriate permissions. We will use the consumer with higher permissions only when generating previews, and the one with regular permissions for all other operations.

This impacted also the npm run graphql-codegen operation used in development, which now will automatically get an authentication token from the Drupal backend when run.

Full Changelog: https://github.com/wunderio/next-drupal-starterkit/compare/v2.3.0...v2.4.0

next-drupal-starterkit - v2.3.0

Published by vermario 5 months ago

[2.3.0] 18.5.2024

  • Override the next.js dependency for next-drupal to be the same as in package.json
  • Prevent the Drupal backend from being indexed by search engines
  • Return permanent or temporary redirect based on the redirect status code set on the Drupal side
  • Move the generation of sitemap.xml to the frontend
  • Support rendering nodes that are not set up to be translatable
  • Use the new Translations GraphQL field to get translated versions of the node
  • TypeScript: Enable noErrorTruncation in TS config
next-drupal-starterkit - v2.2.0

Published by vermario 6 months ago

[2.2.0] 25.4.2024

  • Update Drupal to 10.2.5 and contrib modules to their latest versions
  • Update Next.js to 14.2.2
  • Use the new Translations GraphQL field to get translated versions of the node
  • Enable noErrorTruncation in TypeScript
  • Replace kibana with Elasticvue in Lando
  • If a catch-all route loads a frontpage node, redirect to / in the correct locale
  • Add mechanism to inhibit revalidation (used during migration of default content)
  • Add retry functionality for failed requests to the backend
  • Switch to standalone Next.js build in CI
next-drupal-starterkit - v2.1.0

Published by vermario 8 months ago

[2.1.0] 08.3.2024

  • Update Drupal core to 10.2.4 and contrib modules to latest versions
  • Added patch for paragraphs module to fix ui bug when translating paragraphs
  • Update to node 20, cypress 13 and other dependencies
  • Update to lando > 3.21
  • Bump jose from 4.15.4 to 4.15.5
  • Fix issue with generated paths for static pages having the language path twice
next-drupal-starterkit - v2.0.1

Published by vermario 8 months ago

[2.0.1] 10.2.2024

Changed

  • Updated Drupal core to 10.1.8 and contrib modules to latest versions
  • Updated the graphql_compose module to 2.1 beta1
  • Switched the graphql schema to use Drupal entity ids instead of UUIDs, to fix rendering of nodes at specific revisions.
next-drupal-starterkit - v2.0.0

Published by vermario 8 months ago

[2.0.0]

This release is a major update. Instead of using JSONAPI, the starterkit now uses GraphQL to fetch data from Drupal.
All features are kept but have been re-implemented to use the new way of handling data coming from the backend.

Added

  • GraphQL Drupal modules and related configuration
  • graphql-request for fetching data from Drupal
  • graphql-codegen for generating types from GraphQL schema, queries and fragments

Removed

  • JSONAPI modules and related configuration
  • Manual definitions in zod for JSONAPI responses

Changed

  • Reorganization of the components directory structure
  • Updated Readme with new instructions regarding GraphQL setup
next-drupal-starterkit - v1.0.0

Published by vermario 8 months ago

[1.0.0] - 09.02.2024

The starterkit provides a basic setup for a new project using next-drupal to build a decoupled Drupal frontend with Next.js.

At this point, the starterkit includes the following features:

  • Automated setup with Drupal recipes and Lando
  • Integration with Wunder's Silta hosting setup
  • Content types
    • Frontpage
    • Article
    • Page
  • Paragraph types
    • Text
    • Image
    • Video
    • Accordion (with nested paragraphs)
    • Articles listing
    • Hero
  • Data fetching from the frontend to the backend via JSONAPI
  • Schema definition with Zod
  • Basic styling with Tailwind CSS
  • Basic SEO setup with Next.js
  • Example of integration with Drupal's webform module
  • Authentication with next-auth, user registration and change password
  • Ready integration with Elasticsearch (indexing and front page for results)
  • Preview mode and on-demand regeneration of static pages
  • Metatags support
  • Importable demo content
  • Multilingual support (included English, Finnish and Swedish)
  • Typesafe environment variables with Zod
  • Xml sitemap
  • basic Cypress testing setup
  • initial UI library of components
  • integration with Storybook