chore: bring placeholders back to blank

This commit is contained in:
Elliot DeNolf
2024-11-17 21:26:58 -05:00
parent abf5bb2c34
commit ea0a99e0e4
4 changed files with 12 additions and 4 deletions

View File

@@ -126,6 +126,9 @@ async function main() {
db: 'mongodb',
storage: 'localDisk',
sharp: true,
// The blank template is used as a base for create-payload-app functionality,
// so we do not configure the payload.config.ts file, which leaves the placeholder comments.
configureConfig: false,
},
{
name: 'payload-cloud-mongodb-template',

View File

@@ -1,2 +1,2 @@
DATABASE_URI=mongodb://127.0.0.1/payload-template-blank-3-0
PAYLOAD_SECRET=YOUR_SECRET_HERE
PAYLOAD_SECRET=YOUR_SECRET_HERE

View File

@@ -1,5 +1,5 @@
{
"name": "blank",
"name": "template-blank-3.0",
"version": "1.0.0",
"description": "A blank template to get started with Payload 3.0",
"license": "MIT",

View File

@@ -1,4 +1,5 @@
import { mongooseAdapter } from '@payloadcms/db-mongodb'
// storage-adapter-import-placeholder
import { mongooseAdapter } from '@payloadcms/db-mongodb' // database-adapter-import
import { lexicalEditor } from '@payloadcms/richtext-lexical'
import path from 'path'
import { buildConfig } from 'payload'
@@ -24,9 +25,13 @@ export default buildConfig({
typescript: {
outputFile: path.resolve(dirname, 'payload-types.ts'),
},
// database-adapter-config-start
db: mongooseAdapter({
url: process.env.DATABASE_URI || '',
}),
// database-adapter-config-end
sharp,
plugins: [],
plugins: [
// storage-adapter-placeholder
],
})