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

Update starter to Strapi V4 #515

Open
rubenbase opened this issue Feb 23, 2022 · 3 comments
Open

Update starter to Strapi V4 #515

rubenbase opened this issue Feb 23, 2022 · 3 comments

Comments

@rubenbase
Copy link

As this starter is being featured in the new v4 examples from Strapi’s blog I think it would make sense to update it as it currently uses Strapi v3.

@byoungd
Copy link

byoungd commented Mar 1, 2022

Any plan for this?

@Cally99
Copy link

Cally99 commented Sep 17, 2022

@rubenbase did you ever update this repo to v4?

@Leopold-V
Copy link

A bit late here but for those having troubles using this starter with strapi v4 for me it simply has been about reinstalling the strapi part with latest version and then changing the url in nextjs-strapi-boilerplate/frontend/pages/api/auth/[...nextauth].ts

Change this

        const response = await fetch(
          `${process.env.NEXT_PUBLIC_API_URL}/auth/${account.provider}/callback?access_token=${account?.access_token}`
        );

to this:

        const response = await fetch(
          `${process.env.NEXT_PUBLIC_API_URL}/api/auth/${account.provider}/callback?access_token=${account?.access_token}`
        );

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

No branches or pull requests

4 participants