79 questions
Best practices
0
votes
0
replies
62
views
Best approach to output the result of Rich Text Editing in React (NextJS)
I stuck with the Idea about the Rich Text Editors could generate HTML that can be stored in DB and output it on render via Template Files.
This is not the case while building RTE with React (NextJS). ...
Score of 0
0 answers
94 views
Next.js + PayloadCMS deployment issue: `.next` build from CI fails with dynamic dependencies
Environment:
Framework: Payload CMS (Next.js based project)
Next.js version: 16.1.6 (Turbopack)
Node.js: 22.16.0
Package manager: pnpm
Server: EC2 Ubuntu 22.04.5 LTS
Process manager: PM2
Instance ...
Best practices
0
votes
1
replies
95
views
How to properly structure an aggregation pipeline builder for a product catalog (filters, sorting, pagination, min/max price)?
I’m building a product catalog API using MongoDB’s aggregation pipeline.
On the Node.js side I have a TypeScript “builder” that dynamically constructs the pipeline based on filters, sorting, and ...
Score of 1
2 answers
147 views
Getting an error using Payload CMS trying to connect to MongoDB that says 'unescaped characters' in username/password but there aren't any
I am using Payload CMS with MongoDB via the Terminal in Visual Studio Code. I am trying to connect to MongoDB but keep getting this error:
Error: cannot connect to MongoDB. Details: Username contains ...
Score of 0
0 answers
131 views
How to update a large number of mongodb documents in a tree structure?
I'm using mongo db with payloadcms and I have tree like structure.
We have a collection called nodes. A node have children as array and a parent id.
Now I want to change the node status like marking ...
Score of 0
0 answers
135 views
How to fix DrizzleQueryError when deploying Payload Website Starter one click deployment?
I am getting this below error when using one click vercel payload deployment.
https://vercel.com/templates/next.js/payload-website-starter
All the connection strings are added properly(automatically).
...
Score of 0
1 answer
231 views
Payload CMS: Internal links are not rendered correctly
i am trying to save my Lexical richText field to a lexicalHTMLField inside a payload CMS Block, but my links are not rendered correctly. All internal links are just shown as <a href="#"&...
Score of 0
0 answers
87 views
Add Custom Ordered List to PayloadCMS RTE
My previous post was being closed by its own, though it's still not solving my problem
HERE
the current RTE toolbar already provide a numerical ordered list, and I want to add more (alphabetical and ...
Score of 0
0 answers
105 views
Custom Toolbar in PayloadCMS RTE
I would need some help regarding creating a custom toolbar for PayloadCMS RTE.
The current version is PayloadCMS 3.49.1, and linked with @payloadcms/richtext-lexical version of 0.28.0.
My goal is to ...
Score of 2
0 answers
143 views
Payload CMS - i18n not working for REST API error messages
I'm using Payload CMS with a Next.JS frontend and axios for fetching data via the provided REST API. I need i18n support for the content as well as the interface, e.g. error and validation messages.
...
Score of 1
0 answers
111 views
Payload's 'first-register' Endpoint Returning 404 When Using Non-Default Collection
I've set up a payload app with two auth enabled collections - admin and students. Admin is specified in payload.config.ts as being the collection with admin panel access as shown here:
admin: {
...
Score of 2
0 answers
453 views
Can't seem to generate payloadcms types or importmaps
I'm using payloadcms in a project but i'm having issues generating types and importmaps. It says its conflicting with css files used in @payloadcms/ui.
node:internal/process/promises:394
...
Score of 0
0 answers
62 views
How to mutate a nested object in the beforeChange hook in a collection?
I'm trying to mutate a nested object in the beforeChange hook of a Payload CMS collection definition:
const newContent = structuredClone(props.data.content);
const newData = await props.req.payload({....
Score of 0
1 answer
356 views
Payload CMS UI fields with i18n, does not accept translate function
I am trying to add payloadcms/translations from payload to my cms written with payload cms and next,
"@payloadcms/translations": "^3.42.0",
"@payloadcms/ui": &...
Score of 1
0 answers
54 views
Error: cannot connect to Postgres Docker build Generating static pages (2/11)
I'm trying to build my app with Docker. All processes look pretty fine, but in the last stage, while NextJS is building static pages, an error happens "errno": -111, "code": "...