Skip to content

Commit

Permalink
Merge pull request #901 from CodeForAfrica/feat/civic_signal_webtools…
Browse files Browse the repository at this point in the history
…_cms

@/CivicSignalBlog - Add ability to manage CivicSignal content
  • Loading branch information
m453h authored Sep 25, 2024
2 parents daa0fa4 + 6f47dde commit 159a220
Show file tree
Hide file tree
Showing 26 changed files with 452 additions and 4,342 deletions.
23 changes: 16 additions & 7 deletions apps/civicsignalblog/payload.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,21 @@ import nestedDocs from "@payloadcms/plugin-nested-docs";
import { s3Adapter } from "@payloadcms/plugin-cloud-storage/s3";
import { loadEnvConfig } from "@next/env";

import Authors from "./src/payload/collections/Authors";
import Media from "./src/payload/collections/Media";
import Pages from "./src/payload/collections/Pages";
import Posts from "./src/payload/collections/Posts";
import Authors from "./src/payload/collections/Research/Authors";
import Media from "./src/payload/collections/Research/Media";
import Pages from "./src/payload/collections/Research/Pages";
import CivicSignalPages from "./src/payload/collections/Main/Pages";

import Posts from "./src/payload/collections/Research/Posts";
import Publication from "./src/payload/globals/Publication";
import Site from "./src/payload/globals/Site";
import Tags from "./src/payload/collections/Tags";
import Research from "./src/payload/globals/Site/research";
import Main from "./src/payload/globals/Site/main";
import Tags from "./src/payload/collections/Research/Tags";
import Users from "./src/payload/collections/Users";
import { defaultLocale, locales } from "./src/payload/utils/locales";

import Actions from "./src/payload/components/actions";

const dev = process.env.NODE_ENV !== "production";
const projectDir = process.cwd();
loadEnvConfig(projectDir, dev);
Expand Down Expand Up @@ -62,9 +67,10 @@ export default buildConfig({
Pages,
Posts,
Tags,
CivicSignalPages,
Users,
] as CollectionConfig[],
globals: [Publication, Site] as GlobalConfig[],
globals: [Publication, Research, Main] as GlobalConfig[],
...(locales?.length
? {
localization: {
Expand All @@ -77,6 +83,9 @@ export default buildConfig({
admin: {
css: path.resolve(__dirname, "./src/payload/admin/scss/custom.scss"),
user: Users.slug,
components: {
actions: [Actions],
},
livePreview: {
breakpoints: [
{
Expand Down
Loading

0 comments on commit 159a220

Please sign in to comment.