Lint cleanups
This commit is contained in:
@@ -4,14 +4,14 @@ const Users: CollectionConfig = {
|
||||
slug: 'users',
|
||||
auth: true,
|
||||
admin: {
|
||||
useAsTitle: 'email',
|
||||
useAsTitle: 'email'
|
||||
},
|
||||
access: {
|
||||
read: () => true,
|
||||
read: () => true
|
||||
},
|
||||
fields: [
|
||||
// Email added by default
|
||||
],
|
||||
]
|
||||
};
|
||||
|
||||
export default Users;
|
||||
|
||||
@@ -6,15 +6,15 @@ import Users from './collections/Users';
|
||||
export default buildConfig({
|
||||
serverURL: 'http://localhost:3001',
|
||||
admin: {
|
||||
user: Users.slug,
|
||||
user: Users.slug
|
||||
},
|
||||
collections: [
|
||||
Users,
|
||||
Users
|
||||
],
|
||||
typescript: {
|
||||
outputFile: path.resolve(__dirname, 'payload-types.ts'),
|
||||
outputFile: path.resolve(__dirname, 'payload-types.ts')
|
||||
},
|
||||
graphQL: {
|
||||
schemaOutputFile: path.resolve(__dirname, 'generated-schema.graphql'),
|
||||
},
|
||||
schemaOutputFile: path.resolve(__dirname, 'generated-schema.graphql')
|
||||
}
|
||||
});
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
import * as dotenv from 'dotenv';
|
||||
|
||||
import express from 'express';
|
||||
import payload from 'payload';
|
||||
|
||||
require('dotenv').config();
|
||||
dotenv.config();
|
||||
|
||||
const app = express();
|
||||
|
||||
payload.init({
|
||||
@@ -9,8 +12,8 @@ payload.init({
|
||||
mongoURL: process.env.MONGODB_URI,
|
||||
express: app,
|
||||
onInit: () => {
|
||||
payload.logger.info(`Payload Admin URL: ${payload.getAdminURL()}`)
|
||||
},
|
||||
})
|
||||
payload.logger.info(`Payload Admin URL: ${payload.getAdminURL()}`);
|
||||
}
|
||||
});
|
||||
|
||||
app.listen(3001);
|
||||
|
||||
Reference in New Issue
Block a user