Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(basic-starter): fetch resource with auth in Draft Mode #775

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

balintbrews
Copy link

This pull request is for:

  • examples/*
  • modules/next
  • packages/next-drupal
  • starters/basic-starter
  • starters/graphql-starter
  • starters/pages-starter
  • Other

I ran into a problem after upgrading to Next-Drupal 2.0: I wasn't able to preview unpublished content revisions in Draft Mode due to access problems. After a lot of debugging, setting the withAuth parameter to true for both the drupal.translatePath and drupal.getResource calls helped. This was not in the basic-starter or the example-router-migration, so I went ahead and made the changes. Either they are useful or I'm doing something wrong. 🙂 If it's the latter, please close this PR, and I'll open an issue instead.

Copy link

vercel bot commented Jun 11, 2024

@balintbrews is attempting to deploy a commit to the Chapter Three Team on Vercel.

A member of the Team first needs to authorize it.

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.

1 participant