Website Development on Sanity CMS

Our company is engaged in the development, support and maintenance of sites of any complexity. From simple one-page sites to large-scale cluster systems built on micro services. Experience of developers is confirmed by certificates from vendors.
Development and maintenance of all types of websites:
Informational websites or web applications
Business card websites, landing pages, corporate websites, online catalogs, quizzes, promo websites, blogs, news resources, informational portals, forums, aggregators
E-commerce websites or web applications
Online stores, B2B portals, marketplaces, online exchanges, cashback websites, exchanges, dropshipping platforms, product parsers
Business process management web applications
CRM systems, ERP systems, corporate portals, production management systems, information parsers
Electronic service websites or web applications
Classified ads platforms, online schools, online cinemas, website builders, portals for electronic services, video hosting platforms, thematic portals

These are just some of the technical types of websites we work with, and each of them can have its own specific features and functionality, as well as be customized to meet the specific needs and goals of the client.

Our competencies:
Development stages
Latest works
  • image_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1161
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1041
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    822
  • image_crm_chasseurs_493_0.webp
    CRM development for Chasseurs
    847
  • image_website-sbh_0.png
    Website development for SBH Partners
    999
  • image_website-_0.png
    Website development for Red Pear
    451

Website Development with Sanity CMS

Sanity is a headless CMS with real-time capabilities, written in TypeScript. Content schema is described in code (TypeScript/JavaScript), Sanity Studio is a customizable React editor. GROQ is Sanity's own query language, more powerful than REST for complex structures. Content is stored in Sanity Cloud (Content Lake), local storage is not supported.

Architecture

Sanity Studio (React SPA)    Next.js Frontend
         ↕                         ↕
   Content Lake (Sanity Cloud)
         ↕ GROQ / REST API
   CDN (image CDN built-in)

Creating a Project

npm create sanity@latest -- --template clean --create-project "My Site" --dataset production

cd my-site
npm run dev  # Studio: http://localhost:3333

Document Schema

// schemas/post.ts
import { defineType, defineField } from 'sanity'

export const postType = defineType({
  name: 'post',
  title: 'Article',
  type: 'document',
  fields: [
    defineField({
      name: 'title',
      title: 'Title',
      type: 'string',
      validation: rule => rule.required().min(5).max(100),
    }),
    defineField({
      name: 'slug',
      title: 'URL Slug',
      type: 'slug',
      options: { source: 'title', maxLength: 96 },
    }),
    defineField({
      name: 'body',
      type: 'blockContent',  // Portable Text
    }),
  ],
})

GROQ Queries

// All published articles
*[_type == "post" && publishedAt < now() && !(_id in path("drafts.**"))] | order(publishedAt desc) [0...12] {
  _id,
  title,
  "slug": slug.current,
  publishedAt,
  "author": author->{ name },
  "categories": categories[]->{ title, slug }
}

Integration with Next.js

npm install @sanity/client next-sanity
// lib/sanity.ts
import { createClient } from '@sanity/client'

export const sanityClient = createClient({
  projectId: process.env.NEXT_PUBLIC_SANITY_PROJECT_ID!,
  dataset: 'production',
  apiVersion: '2024-01-01',
  useCdn: process.env.NODE_ENV === 'production',
})
// app/blog/[slug]/page.tsx
import { sanityClient } from '@/lib/sanity'
import { notFound } from 'next/navigation'

export default async function PostPage({ params }: { params: { slug: string } }) {
  const post = await sanityClient.fetch(
    `*[_type == "post" && slug.current == $slug][0] { title, body }`,
    { slug: params.slug }
  )

  if (!post) notFound()
  return <article><h1>{post.title}</h1></article>
}

Typical Stack

Layer Technology
CMS Sanity 3.x
Studio Embedded in Next.js or separate deploy
Frontend Next.js 14 App Router
Images Sanity Image CDN (built-in)
Search GROQ / Algolia
Deploy Vercel (Next.js) + sanity.io (Studio)

Timeline

Basic website with 3–5 document types and Next.js frontend — 2–3 weeks. Complex project with custom Studio plugins and Visual Editing — 4–6 weeks.