Skip to content

Conversation

@fonodi
Copy link
Collaborator

@fonodi fonodi commented Nov 26, 2025

What does it do?

Replaced the fetchContentType function with a globally available getContentType and getSingleType functions, which are using the Strapi Client SDK under the hood.

Why is it needed?

Modernize the codebase, to showcase the lastest Strapi features and best prac

How to test it?

The website should look unchanged, the changes are under the hood.

Some additional things to check:

  • Strapi project uuid is "LAUNCHPAD". strapi/packages.json.
  • Strapi version is the latest possible.
  • If the Strapi version has been changed, make sure that the strapi/scripts/prefillLoginFields.js works.
  • If you updated content, make sure to create a new export in the strapi/data folder and update the strapi/packages.json seed command if necessary.

Related issue(s)/PR(s)

Let us know if this is related to any issue/pull request.

@vercel
Copy link

vercel bot commented Nov 26, 2025

Deployment failed with the following error:

You don't have permission to create a Preview Deployment for this Vercel project: launch-pad.

View Documentation: https://vercel.com/docs/accounts/team-members-and-roles

@fonodi fonodi closed this Nov 27, 2025
@fonodi
Copy link
Collaborator Author

fonodi commented Nov 27, 2025

Closing to nit make a build preview by accident

@fonodi
Copy link
Collaborator Author

fonodi commented Dec 3, 2025

Reopening the PR, after not seeing any issues regarding the npm supply chain attack

@PaulBratslavsky
Copy link
Collaborator

Hey @fonodi took a look looks great. I know it is still in progress. I think adding a custom error class would be great so not to silently fail.

I made this repo with my notes on the proposed changes based on you PR as an example. https://github.com/strapi/LaunchPad/tree/feat/71-strapi-client-sdk-pauls-notes

Let me know what you think. I also update the pages to use client SDK to test if everything works.

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.

2 participants