How to set up Payload with Supabase

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 พ.ค. 2024
  • Learn how to set up Payload with ‪@Supabase‬ to create a powerful backend for your Next.js app! 👇
    If you're deploying Payload, you need a database. With Payload, you can choose MongoDB or Postgres. Supabase provides a Postgres database and multiple S3 storage buckets-along with a generous free plan (500 MB database, 1 GB storage).
    ⭐ Like what we're up to? Leave us a star ⭐
    github.com/payloadcms/payload
    A primer on Payload ...
    - The fastest growing CMS in our category.
    - Next.js native, so it can seamlessly integrate it into your Next app. You can also one-click deploy on Vercel.
    - Fully open-source, offering the flexibility of self-hosting or managed hosting.
    - Fully TypeScript, eliminating the need to navigate through a UI - simply configure everything in code.
    - Highly extensible, granting you full control over custom hooks, endpoints, and more. It's not just a CMS; you can extend it to become a comprehensive backend for any application you build.
    - Use as a standalone app if you're working with other frameworks.
    Get started in one line: npx create-payload-app@beta
    ----------------------------------------
    S3 code snippet and environment variables from video:
    s3Storage({
    collections: {
    media: {
    prefix: 'media',
    }
    },
    bucket: process.env.S3_BUCKET,
    config: {
    forcePathStyle: true,
    credentials: {
    accessKeyId: process.env.S3_ACCESS_KEY_ID,
    secretAccessKey: process.env.S3_SECRET_ACCESS_KEY,
    },
    region: process.env.S3_REGION,
    endpoint: process.env.S3_ENDPOINT,
    },
    }),
    S3_BUCKET=
    S3_ACCESS_KEY_ID=
    S3_SECRET_ACCESS_KEY=
    S3_REGION=
    S3_ENDPOINT=
    Big thanks to our friends at 10xMedia.de, a Payload preferred agency, who created this video.
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 25

  • @RobertParallax
    @RobertParallax หลายเดือนก่อน +8

    Thank you! It would be great if you could create a video demonstrating your workflow for managing and switching between production and development databases with Supabase. Additionally, it would be helpful to see how you can clone your production database to a development one, allowing for easy resets of the development environment when needed.

  • @SiBtoday
    @SiBtoday หลายเดือนก่อน +1

    I just wanted to point out, that this tutorial was just perfectly recorded. Learned a lot, as someone who just got across Payload :) Keep up, that amazing work!

  • @minggux1694
    @minggux1694 หลายเดือนก่อน +1

    Awesome, very helpful for a quick project.

  • @Amitsarker
    @Amitsarker หลายเดือนก่อน +2

    Great tutorial!
    Thanks for sharing your expertise. Keep up the fantastic work!

  • @peterkyle_0125
    @peterkyle_0125 หลายเดือนก่อน

    This is amazing,I have been looking for a way to do this then came this video.Thanks again for this 😃

  • @muperdev
    @muperdev หลายเดือนก่อน

    Another masterpiece I guess!

  • @JohnVandivier
    @JohnVandivier หลายเดือนก่อน +1

    brilliant

  • @00titanium00
    @00titanium00 13 วันที่ผ่านมา

    Maybe it's possible to adapt fro selfhosted supabase because from docs seem that actually it can be and issue connecting to the supabase bucket ...

  • @chongjumai2905
    @chongjumai2905 9 วันที่ผ่านมา

    With the latest beta63. I am not able to create the first user. It always say invalid password with using the online Supabase. But if I changed the connection string to local dev, it works.

  • @DarkLide92
    @DarkLide92 25 วันที่ผ่านมา

    Is it recommended to use supabase cli to do the migrations? Or should we stick with payload doing migrations?

  • @chrisarrow
    @chrisarrow หลายเดือนก่อน

    At 12:36 how do you go about disabling payload access control?

  • @georgekrax
    @georgekrax หลายเดือนก่อน

    Could I use something like Payload + Supabase + Prisma?

  • @osamaalnaggar
    @osamaalnaggar หลายเดือนก่อน +2

    Can we use supabase Authentication with Payload?
    We need users to sign in through Google and Payload currently doesn't offer that

    • @payloadcms
      @payloadcms  หลายเดือนก่อน

      You can determine your own auth strategy (payloadcms.com/docs/authentication/config#strategies). Otherwise, Payload does offer an SSO plugin (available on enterprise plans) that is more robust and includes Google.

    • @danielstill5625
      @danielstill5625 หลายเดือนก่อน

      Agreed. It's nice that Payload does auth, but Supabase specialises in auth, so it would be so nice to use Supabase for auth.

  • @madusara.liyanage
    @madusara.liyanage หลายเดือนก่อน

    I have a mongodb connected to a payload app and whatever the images I upload to payload (under 'media' collection) gets broken after some time. Now I connected a supabase s3 bucket to the project, it gets uploaded to supabase (and mongodb both) and still the image file gets broken after a while giving a 500 error in the get request. But the image resides properly inside the bucket when checked from supabase side. Do you have any clue why? TIA

  • @developer-tq9kj
    @developer-tq9kj หลายเดือนก่อน

    what about convex database? can we use convex with payload?

  • @developer-tq9kj
    @developer-tq9kj หลายเดือนก่อน

    what about convex? can we use convex with payload?

  • @varmahacks3150
    @varmahacks3150 หลายเดือนก่อน

    Payload 3.0 cms deploy In vercel video
    Is it possible to deploy the payload in local setup server/ custom server

    • @payloadcms
      @payloadcms  หลายเดือนก่อน +1

      You can deploy Payload anywhere Next.js can be deployed-which is pretty much anywhere. You can also run Payload anywhere you can run node, including on your local machine.

  • @TomKendry
    @TomKendry หลายเดือนก่อน +2

    I ran into a lot of trouble attempting to get through the storage portion of this guide as it seems that the methods have changed in the past 11 days since this video was posted.
    I had to install @payloadcms/plugin-cloud-storage and I followed the guide on the readme for setting up the plugin which is considerably different than the approach outlined here.
    I also had to be sure to include an "endpoint" field in my s3 adapter config.
    I was a little shocked to see that this guide and the written counterpart were posted under 2 weeks ago and seem to be completely outdated and confusing for new users.

  • @Nin_Cada
    @Nin_Cada หลายเดือนก่อน +5

    Release the stable version already!!😐

    • @SiBtoday
      @SiBtoday หลายเดือนก่อน

      Any ETA for this already? :)

    • @coherentpanda7115
      @coherentpanda7115 14 วันที่ผ่านมา +1

      They can't release until NextJS 19 is released, as they are reworking Payload to be better compatible with the latest version of React and new NextJS features. Since both React and NextJS are not ready with the latest stable releases, Payload won't be releasing until after.

  • @Michael-Martell
    @Michael-Martell หลายเดือนก่อน

    Can you do an integration with Xata.db?