2023-05-13 14:38:56 +00:00
|
|
|
import { buildConfig } from "payload/config";
|
|
|
|
import path from "path";
|
|
|
|
import Categories from "./collections/Categories";
|
|
|
|
import Posts from "./collections/Posts";
|
|
|
|
import Tags from "./collections/Tags";
|
|
|
|
import Users from "./collections/Users";
|
|
|
|
|
|
|
|
export default buildConfig({
|
|
|
|
serverURL: "http://localhost:3001",
|
|
|
|
admin: {
|
|
|
|
user: Users.slug,
|
|
|
|
},
|
|
|
|
collections: [Categories, Posts, Tags, Users],
|
|
|
|
typescript: {
|
2023-05-13 17:10:37 +00:00
|
|
|
outputFile: path.resolve("/", "types.ts"),
|
2023-05-13 14:38:56 +00:00
|
|
|
},
|
|
|
|
});
|