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

upgrade payload to ver. 3.0 #53

Merged
merged 57 commits into from
Oct 14, 2024
Merged

upgrade payload to ver. 3.0 #53

merged 57 commits into from
Oct 14, 2024

Conversation

rccsousa
Copy link
Collaborator

@rccsousa rccsousa commented Oct 10, 2024

Why:

  • current version of the project is running on Payload 2.0 which required hosting Payload on a separate Express server;
  • the project wasn't building nor deploying to Netlify properly given this issue;

How:

  • upgraded the project dependencies and files to use Payload verion 3.0

Detailed update notes:

Changes:

  • Updated ESLint, TypeScript and NextJS config files to comply with Payload 3.0;
  • Updated existing collections to comply with Payload 3.0 configuration options.
  • Renamed podcast-episodes collection to podcasts.
  • Refactored content fetchers to use Payload Local API instead of GraphQL queries.
  • Refectored components that use the above mentioned fetchers to reflect changes;
  • Updated blogpost content to use Payload 3.0 Lexical Serializer, no longer relying on dangerouslySetInnerHTML.

Cleanup:

  • Removed deprecated Payload 2.0 files.
  • Moved Payload Admin Panel to the ./app folder, as it is now treated as a page by Next.js.

Roadmap:

  • Reorganize project files to improve navigation by separating Payload components from frontend components.

Copy link

netlify bot commented Oct 10, 2024

Deploy Preview for content-sub ready!

Name Link
🔨 Latest commit dc5191c
🔍 Latest deploy log https://app.netlify.com/sites/content-sub/deploys/670952233571160008ffba99
😎 Deploy Preview https://deploy-preview-53--content-sub.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@rccsousa rccsousa changed the title will this deploy? upgrade payload to ver. 3.0 Oct 10, 2024
@rccsousa rccsousa requested a review from davelange October 11, 2024 15:41
@rccsousa rccsousa marked this pull request as ready for review October 11, 2024 15:53
Copy link
Contributor

@davelange davelange left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏 👏 👏

@rccsousa rccsousa merged commit ee8fa05 into main Oct 14, 2024
5 checks passed
@rccsousa rccsousa deleted the rs/upgrade-payload branch October 14, 2024 08:53
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