create-payload-app
Advanced tools
Comparing version 0.3.21 to 0.3.22
@@ -15,3 +15,8 @@ { | ||
"rootDir": "./src", | ||
"jsx": "react" | ||
"jsx": "react", | ||
"paths": { | ||
"payload/generated-types": [ | ||
"./src/payload-types.ts", | ||
], | ||
} | ||
}, | ||
@@ -27,4 +32,5 @@ "include": [ | ||
"ts-node": { | ||
"transpileOnly": true | ||
"transpileOnly": true, | ||
"swc": true, | ||
} | ||
} |
@@ -12,14 +12,18 @@ import express from 'express'; | ||
// Initialize Payload | ||
payload.init({ | ||
secret: process.env.PAYLOAD_SECRET, | ||
mongoURL: process.env.MONGODB_URI, | ||
express: app, | ||
onInit: () => { | ||
payload.logger.info(`Payload Admin URL: ${payload.getAdminURL()}`) | ||
}, | ||
}) | ||
const start = async () => { | ||
// Initialize Payload | ||
await payload.init({ | ||
secret: process.env.PAYLOAD_SECRET, | ||
mongoURL: process.env.MONGODB_URI, | ||
express: app, | ||
onInit: async () => { | ||
payload.logger.info(`Payload Admin URL: ${payload.getAdminURL()}`) | ||
}, | ||
}) | ||
// Add your own express routes here | ||
// Add your own express routes here | ||
app.listen(3000); | ||
app.listen(3000); | ||
} | ||
start(); |
@@ -12,14 +12,18 @@ import express from 'express'; | ||
// Initialize Payload | ||
payload.init({ | ||
secret: process.env.PAYLOAD_SECRET, | ||
mongoURL: process.env.MONGODB_URI, | ||
express: app, | ||
onInit: () => { | ||
payload.logger.info(`Payload Admin URL: ${payload.getAdminURL()}`) | ||
}, | ||
}) | ||
const start = async () => { | ||
// Initialize Payload | ||
await payload.init({ | ||
secret: process.env.PAYLOAD_SECRET, | ||
mongoURL: process.env.MONGODB_URI, | ||
express: app, | ||
onInit: async () => { | ||
payload.logger.info(`Payload Admin URL: ${payload.getAdminURL()}`) | ||
}, | ||
}) | ||
// Add your own express routes here | ||
// Add your own express routes here | ||
app.listen(3000); | ||
app.listen(3000); | ||
} | ||
start(); |
@@ -12,14 +12,18 @@ import express from 'express'; | ||
// Initialize Payload | ||
payload.init({ | ||
secret: process.env.PAYLOAD_SECRET, | ||
mongoURL: process.env.MONGODB_URI, | ||
express: app, | ||
onInit: () => { | ||
payload.logger.info(`Payload Admin URL: ${payload.getAdminURL()}`) | ||
}, | ||
}) | ||
const start = async () => { | ||
// Initialize Payload | ||
await payload.init({ | ||
secret: process.env.PAYLOAD_SECRET, | ||
mongoURL: process.env.MONGODB_URI, | ||
express: app, | ||
onInit: async () => { | ||
payload.logger.info(`Payload Admin URL: ${payload.getAdminURL()}`) | ||
}, | ||
}) | ||
// Add your own express routes here | ||
// Add your own express routes here | ||
app.listen(3000); | ||
app.listen(3000); | ||
} | ||
start(); |
@@ -39,3 +39,3 @@ { | ||
}, | ||
"version": "0.3.21", | ||
"version": "0.3.22", | ||
"devDependencies": { | ||
@@ -42,0 +42,0 @@ "@types/command-exists": "^1.2.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
103576
2407