chore: gen blank template from _template

This commit is contained in:
Elliot DeNolf
2024-11-17 17:40:08 -05:00
parent 3242c679eb
commit abf5bb2c34
4 changed files with 4 additions and 12 deletions

View File

@@ -126,9 +126,6 @@ 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": "template-blank-3.0",
"name": "blank",
"version": "1.0.0",
"description": "A blank template to get started with Payload 3.0",
"license": "MIT",

View File

@@ -1,5 +1,4 @@
// storage-adapter-import-placeholder
import { mongooseAdapter } from '@payloadcms/db-mongodb' // database-adapter-import
import { mongooseAdapter } from '@payloadcms/db-mongodb'
import { lexicalEditor } from '@payloadcms/richtext-lexical'
import path from 'path'
import { buildConfig } from 'payload'
@@ -25,13 +24,9 @@ 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: [
// storage-adapter-placeholder
],
plugins: [],
})