惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
Docker
Apple Machine Learning Research
Apple Machine Learning Research
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 三生石上(FineUI控件)
月光博客
月光博客
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
WordPress大学
WordPress大学
Hugging Face - Blog
Hugging Face - Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
M
MIT News - Artificial intelligence
腾讯CDC
B
Blog RSS Feed
H
Help Net Security
J
Java Code Geeks
有赞技术团队
有赞技术团队
Y
Y Combinator Blog
博客园_首页
Last Week in AI
Last Week in AI
博客园 - 【当耐特】
博客园 - Franky
B
Blog
MongoDB | Blog
MongoDB | Blog
博客园 - 叶小钗
Martin Fowler
Martin Fowler

Netlify Developers

AI model comparison using Netlify's AI Gateway | Netlify Developers Build an AI agent to automatically process and summarize form submissions | Netlify Developers Build an AI agent to automatically generate relevant images for blog posts | Netlify Developers Prerendering SPA content pages to enable AI agent access | Netlify Developers Identify image optimization opportunities with Netlify Observability | Netlify Developers Fix top 404 page not found errors with Netlify Observability | Netlify Developers Introducing AI Gateway: built-in AI model access on Netlify | Netlify Developers Introducing Observability: your project insights on Netlify | Netlify Developers From first publish to first update with AI agents | Netlify Developers How to use Agent Runners on Netlify | Netlify Developers Add forms to your project with AI + Netlify | Netlify Developers Track Real User Metrics | Netlify Developers Lighthouse performance scores on Netlify | Netlify Developers Review your AI project before you ship | Netlify Developers Using environment variables in AI Projects on Netlify | Netlify Developers Build prototypes and MVPs fast with AI + Netlify | Netlify Developers Pause auto-publishing on Netlify | Netlify Developers Run serverless functions, storage, and more natively in Nuxt dev | Netlify Developers Netlify Office Hours: The AX Arcade challenge | Netlify Developers Netlify Office Hours: Prompting with style | Netlify Developers Netlify Office Hours: RAG Apps with OpenAI + Netlify DB | Netlify Developers How to build a RAG application with Neon, Netlify & OpenAI | Netlify Developers Netlify Office Hours: Netlify DB (powered by Neon) | Netlify Developers Netlify Office Hours: Netlify MCP Server | Netlify Developers Netlify Office Hours: Netlify Vite Plugin | Netlify Developers Building MCPs with Netlify | Netlify Developers Deploying sites from your AI tool | Netlify Developers Adding your domain using Netlify API | Netlify Developers Build a context driven chat bot with Netlify Blob and OpenAI | Netlify Developers Simplify deployments with Netlify’s branch-matching environment variables | Netlify Developers
How to deploy Payload CMS to Netlify | Netlify Developers
2024-04-29 · via Netlify Developers

Payload is a self-hosted headless CMS. With the new 3.0 beta release it is now built on Next.js, making it easy to deploy to Netlify. In this guide, we’ll show you how to deploy Payload CMS to Netlify either standalone or as part of your existing Next.js site.

#TL;DR

Payload 3.0 beta is built on Next.js, so it can be deployed to Netlify in just a few clicks. Discover the command you need to add it to an existing Next.js project, and find an example site to deploy and explore.

#What is Payload?

Payload is a self-hosted headless CMS. It lets you deploy your own headless CMS, backed by your own MongoDB or PostgreSQL database, and keep in control of your own data.

#What’s new in Payload 3.0 beta?

The new 3.0 beta release of Payload is built on Next.js, and no longer relies on running a separate Express server to host the admin and API. It’s easy to deploy either as a standalone CMS or as part of an existing Next.js site. Because it’s a regular Next.js site, it can be deployed to a serverless Next.js platform like Netlify, rather than needing to run in a Docker container or similar Node server. Adding it to an existing Next.js site is as simple as running a single command.

Warning!

Payload 2.0 cannot be deployed to Netlify or any other serverless platform because it needs to run a standalone Express server. Attempting to deploy to Netlify can cause expected problems.

#Choosing a database

Payload can use either MongoDB or PostgreSQL as a database. Make sure you have a database set up before you start, and copy the connection string to use in the Payload setup. If you choose Supabase for your Postgres database, you can use the Supabase integration for Netlify.

#How to install Payload 3.0 beta on your Next.js site

Warning!

Payload 3.0 is BETA software and the Payload team warns that you are 100% guaranteed to run into bugs / weird stuff. They are actively working toward a stable release as fast as they can.

You can add Payload to your Next.js project with a single command:

npx create-payload-app@beta

This will deploy Payload alongside your existing Next.js site.

#Try the Payload 3.0 beta demo

To deploy Payload you need a database connection string and a secret key. The secret key can be any random value. On Mac or Linux you can generate a random secret with the following command:

Copy that value to use as your secret key. Once you have setup your database and generated a random secret, you can deploy the demo to Netlify to explore Payload 3.0 beta:

Deploy to Netlify