Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

"Proper way" to share a custom field?

default discord avatar
Tinoutilast year
3

I can't seem to find any info about this in the docs or in Discord/Github, so my apologies if this is obvious. 😅



What would be the "proper" way to share custom Field Components, whether with other people or between your own projects?

I guess maybe bundle the whole thing into a npm package and import it like you'd do normally (

https://payloadcms.com/blog/building-a-custom-field#:~:text=Import%20the%20field%20in%20a%20collection

) ?

  • default discord avatar
    Jarrodlast year

    I think packaging it up would make the most sense, this way it can receive updates easily

  • default discord avatar
    Tinoutilast year

    Checks out! I don't have any experience making npm packages so I wasn't sure how involved that would be or if that would even be the best option in that scenario. 👍

  • default discord avatar
    noheadphoneslast year

    @Tinouti this guy's content is very good

    https://www.youtube.com/watch?v=eh89VE3Mk5g

    link from a live:

    https://www.youtube.com/watch?v=aKTSC4D1GL8

    ik its video content so it sucks to skim but hes a good one, the long video should give you full indepth coverage should you need it

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team..