Skip to content

Commit

Permalink
tmp: skip loading payload config
Browse files Browse the repository at this point in the history
  • Loading branch information
ikenox committed Jul 12, 2024
1 parent ea3bad8 commit 8e1da74
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ async function main() {

nextApp.prepare().then(async () => {
const config = await importConfig('../payload.config.ts')
const payload = await getPayload({ config })
// const payload = await getPayload({ config })
expressApp.get('/users', async (req, res) => {
await payload
.find({ collection: 'users' })
.then(({ docs }) => res.json(docs))
.catch(next)
// await payload
// .find({ collection: 'users' })
// .then(({ docs }) => res.json(docs))
// .catch(next)
})
console.log('Next.js started')
expressApp.use((req, res) => nextHandler(req, res))
Expand Down

0 comments on commit 8e1da74

Please sign in to comment.