fixing tina
This commit is contained in:
Generated
+47
@@ -0,0 +1,47 @@
|
||||
// tina/config.ts
|
||||
import { defineConfig } from "tinacms";
|
||||
var branch = process.env.HEAD || process.env.VERCEL_GIT_COMMIT_REF || "main";
|
||||
var config_default = defineConfig({
|
||||
branch,
|
||||
clientId: "e4537a30-23f9-4ad7-8a1f-f844a298dff3",
|
||||
// Get this from tina.io
|
||||
token: "e79c3264742978eaeaa3cc6e164bd4959c7edda8",
|
||||
// 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
|
||||
};
|
||||
Reference in New Issue
Block a user