2023-11-10 22:56:48 +00:00
|
|
|
// tina/config.ts
|
|
|
|
|
import { defineConfig } from "tinacms";
|
|
|
|
|
var branch = process.env.HEAD || process.env.VERCEL_GIT_COMMIT_REF || "main";
|
|
|
|
|
var config_default = defineConfig({
|
|
|
|
|
branch,
|
2023-11-10 23:24:28 +00:00
|
|
|
clientId: "263d908d-7712-4d39-b378-5019e6d7ba45",
|
2023-11-10 22:56:48 +00:00
|
|
|
// Get this from tina.io
|
2023-11-10 23:24:28 +00:00
|
|
|
token: "91dfa2f9c48a168d96f77629d51413a93250f072",
|
2023-11-10 22:56:48 +00:00
|
|
|
// Get this from tina.io
|
|
|
|
|
build: {
|
|
|
|
|
outputFolder: "admin",
|
|
|
|
|
publicFolder: "static"
|
|
|
|
|
},
|
|
|
|
|
media: {
|
|
|
|
|
tina: {
|
|
|
|
|
mediaRoot: "",
|
|
|
|
|
publicFolder: "static"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
schema: {
|
|
|
|
|
collections: [
|
|
|
|
|
{
|
|
|
|
|
name: "post",
|
|
|
|
|
label: "Posts",
|
|
|
|
|
path: "content/posts",
|
|
|
|
|
fields: [
|
|
|
|
|
{
|
|
|
|
|
type: "string",
|
|
|
|
|
name: "title",
|
|
|
|
|
label: "Title",
|
|
|
|
|
isTitle: true,
|
|
|
|
|
required: true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
type: "rich-text",
|
|
|
|
|
name: "body",
|
|
|
|
|
label: "Body",
|
|
|
|
|
isBody: true
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
export {
|
|
|
|
|
config_default as default
|
|
|
|
|
};
|