Skip to content

Commit

Permalink
Fix failing build
Browse files Browse the repository at this point in the history
  • Loading branch information
koechkevin committed Jul 12, 2024
1 parent 56e0771 commit e505d31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/roboshield/.env
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ SENTRY_PROJECT=roboshield

NEXT_PUBLIC_IMAGE_DOMAINS="*.codeforafrica.org"
NEXT_PUBLIC_IMAGE_UNOPTIMIZED="true"

NEXT_PUBLIC_APP_URL=http://localhost:3000
1 change: 1 addition & 0 deletions apps/roboshield/src/payload/utils/formatDraftUrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Document } from "payload/types";

const payloadUrl =
process.env.PAYLOAD_PUBLIC_APP_URL || process.env.NEXT_PUBLIC_APP_URL;

function formatDraftUrl(collection: string, doc: Document) {
const pagePath = formatPagePath(collection, doc);
if (pagePath) {
Expand Down

0 comments on commit e505d31

Please sign in to comment.