Skip to content

Commit

Permalink
Merge pull request #787 from CodeForAfrica/fix/roboshield-failed-build
Browse files Browse the repository at this point in the history
Fix/RoboShield failed build
  • Loading branch information
m453h authored Jul 18, 2024
2 parents 2923822 + 11c4b18 commit 4e06c52
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion apps/roboshield/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "roboshield",
"version": "0.1.5",
"version": "0.1.6",
"private": true,
"scripts": {
"build-server": "tsc --project tsconfig.server.json",
Expand Down
4 changes: 0 additions & 4 deletions apps/roboshield/payload-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,3 @@ export interface SettingsSite {
updatedAt?: string | null;
createdAt?: string | null;
}

declare module "payload" {
export interface GeneratedTypes extends Config {}
}
8 changes: 8 additions & 0 deletions apps/roboshield/payload.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { s3Adapter } from "@payloadcms/plugin-cloud-storage/s3";
import Users from "./src/payload/collections/Users";
import { defaultLocale, locales } from "./src/payload/utils/locales";
import { loadEnvConfig } from "@next/env";
import { Config } from "./payload-types";

const projectDir = process.cwd();
loadEnvConfig(projectDir);
Expand Down Expand Up @@ -122,4 +123,11 @@ export default buildConfig({
}),
] as any[],
telemetry: process?.env?.NODE_ENV !== "production",
typescript: {
declare: false, // defaults to true if not set
},
});

declare module "payload" {
export interface PayloadGeneratedTypes extends Config {}
}

0 comments on commit 4e06c52

Please sign in to comment.