mirror of https://github.com/onweru/compose.git

weru
31.18.2025 91e362808344dfd075d4791b9a5942c0e5f02822
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import { defineConfig } from "tinacms";
import Doc from "./collections/doc";
import Post from "./collections/post";
import Tutorial from "./collections/tutorial";
 
export default defineConfig({
  clientId: process.env.TINA_CLIENT_ID!,
  branch:
    process.env.TINA_BRANCH! || // custom branch env override
    process.env.VERCEL_GIT_COMMIT_REF! || // Vercel branch env
    process.env.HEAD!, // Netlify branch env
  token: process.env.TINA_TOKEN!,
  build: {
    outputFolder: "admin",
    publicFolder: "static",
  },
  media: {
    tina: {
      mediaRoot: "images",
      publicFolder: "static",
    },
  },
  schema: {
    collections: [
      Doc,
      Post,
      Tutorial,
    ],
  },
  search: {
    tina: {
      indexerToken: "876018600e28b19feaf033cc3364f588fe8a6248",
      stopwordLanguages: ["deu", "eng", "fra", "ita", "spa", "nld"]
    },
    indexBatchSize: 100,
    maxSearchIndexFieldLength: 100
  }
});