DEV Community

loading...
Cover image for How to use Netlify CMS on Vercel

How to use Netlify CMS on Vercel

adrianub profile image Adrián UB ・1 min read

Hi everyone, today I want to introduce you to a serverless service to use Netlify CMS for sites hosted on Vercel.

What you need to do is modify your config.yml file:

backend:
  name: [github | gitlab]
  repo: adrian-ub/adrian-ub # Path to your Github/Gitlab repository
  branch: main # Branch to update
  base_url: https://netlify-cms.adrianub.vercel.app
Enter fullscreen mode Exit fullscreen mode

You can visit: https://netlify-cms.adrianub.vercel.app

GitHub logo adrian-ub / netlify-cms-vercel

Use Netlify CMS for sites hosted on Vercel.

Netlify CMS on Vercel

A simple OAuth2 serverless gateway for Netlify CMS written in TypeScript.

Why do I need this?

If you would like to use Netlify CMS to manage your site deployed to Vercel.

GitHub and Gitlab requires a server for authentication and Netlify provides this server only for sites deployed to it. Fortunately, such server is rather small and can work with Vercel's serverless functions.

Usage

In yours projects modify config.yml file:

backend:
  name: [github | gitlab]
  repo: adrian-ub/adrian-ub # Path to your Github/Gitlab repository
  branch: main # Branch to update
  base_url: https://netlify-cms.adrianub.vercel.app
Enter fullscreen mode Exit fullscreen mode

Authors

Discussion (0)

pic
Editor guide