Skip to content

tinacms/tina-cloud-starter-self-hosted-netlify-functions

Repository files navigation

Note this repo assumes basic knowledge of using the MongoDB adapter and ClerkJS for auth with Tina.

Getting started

Copy the .env.sample and provide the appropriate values

cp .env.sample .env

For the GITHUB_PERSONAL_ACCESS_TOKEN, ensure you have access to write content to the repo.

Run the dev server

npm run dev

This will start both the TinaCMS and Netlify dev servers on your machine. By default, Netlify will serve the app on port 8888. Visit the admin at http://localhost:8888/admin/index.html and login to Clerk, be sure to use the same email address that you supplied as TINA_PUBLIC_PERMITTED_EMAIL in the .env file.

Testing auth

Set TINA_PUBLIC_IS_LOCAL to "false" to test your Clerk auth integration locally

Going to production

The only difference between local dev with Netlify and running on a Netlify host is that you'll want to be sure the Netlify deployment has access to the appropriate environment variables. Be sure not to copy TINA_PUBLIC_IS_LOCAL, or set it to "false".

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published