What is CMS?

In a nutshell, you can customize your entire Website or App in this platform.

Sanity is the CMS (Content Management System) used to host content for RBI’s digital platforms. Sanity will structured and host your restaurant data, menu, marketing images, navigation, promotion and etc.

How to get access on Sanity?

You should request access for your Customer Success Manager.

How are the environments set up?

Your website will always be hosted in 4 development environments:

These are used according to the best practices of Software development, and will minimize the chances of wrong developments or wrong content configurations from being seen by your guests.

Mainly, engineers team rely on using the lower environments (Development, Staging and Quality Assurance) to develop new features. Each of the Environments also has a respective Sanity link, meaning for each Environment you will have:

Noticed that making changes to Staging will affect Staging environment only.

Request for your Customer Success Manager the respective links for your market.

Which environment should I work?

Essentially, franchisees focus on Staging and Production environment.

You should start produce a new content on Staging environment and once the content is ready to be published to production, you should use the process of Sanity Migrations.

What are Sanity Migrations?

Sanity Migrations allow you to independently migrate content from Staging to different environments.

According to best practices of content management, new content should be created and tested on Staging environment and afterwards published those changes to Production environment.

You will need a write token in order to use this tool. If don’t have one, request it from your Customer Success Manager. Make sure to save it locally on your computer so you can re-use it, but please DO NOT SHARE THIS TOKEN, as it is a user-specific token.

Content can be migrated in two different ways:

  1. Using a GROQ query in the Migration tool

  2. Individually migrating a document

Staging should always be the source of truth to migrate changes to other environments (e.g. staging → production)

How to use Migration tool?

The Migration tool can be found on the top navigation menu in Sanity.

The Migration tool allows you to migrate multiple documents using a GROQ query, as opposed to only moving the currently viewed document. In terms of functionality, the actual migration tool works the same as the document action.

Sanity-Migration tool.png

Once you input your token, you’ll be prompted to input a GROQ query that refer to the document you’d like to move:

Sanity-Migration tool-1.png

Below you can find the most used queries for your use:

You can also build your own GROQ queries, more information on GROQ here.

This process will also move children documents associated to the documents you’re migrating

Once you’ve inputted your query, you’ll need to select your destination dataset – typically prod_[brand]_[country].

Sanity-Migration tool-3.png