Skip to content

Test about Next.js frontend creation with Drupal backend.

Notifications You must be signed in to change notification settings

nautes-tech/nextjs-drupal-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Drupal next test

A basic D9 installation configured to be a back-end site with JSON:API or Drupal Next.js.

DDEV is already configured but other local servers should work as well.

Basic postman collection

Setup

  • composer install
  • Import the db: private-files/db/base-db.sql.gz
  • Extract the public files backup private-files/public-files-bck/public-files.tar.gz inside web/sites/default/files
  • Empty the caches, e.g. ddev drush cr

Admin access

user: giuseppe.esposito@nautes.com
password: admin

Drupal Next.js credentials

# See https://next-drupal.org/docs/environment-variables

# Required
NEXT_PUBLIC_DRUPAL_BASE_URL=https://drupal-next-test.ddev.site
NEXT_IMAGE_DOMAIN=drupal-next-test.ddev.site

# Required for Preview Mode
DRUPAL_PREVIEW_SECRET=secret

# Authentication (Bearer)
DRUPAL_CLIENT_ID=73c0b99b-1a8c-4671-9790-836b915e59c6
DRUPAL_CLIENT_SECRET=secret

# Optional
DRUPAL_SITE_ID=next_js
DRUPAL_FRONT_PAGE=/node

About

Test about Next.js frontend creation with Drupal backend.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages