chore: fix dev:postgres command, disable dependency checker in core dev (#7733)
This commit is contained in:
@@ -32,6 +32,8 @@ export async function initPayloadE2E({ dirname }: Args): Promise<Result> {
|
||||
|
||||
const port = 3000
|
||||
process.env.PORT = String(port)
|
||||
process.env.PAYLOAD_DISABLE_DEPENDENCY_CHECKER = 'true'
|
||||
|
||||
const serverURL = `http://localhost:${port}`
|
||||
|
||||
// @ts-expect-error
|
||||
@@ -53,7 +55,7 @@ export async function initPayloadE2E({ dirname }: Args): Promise<Result> {
|
||||
// which seeds test data twice + other bad things.
|
||||
// We initialize Payload above so we can have access to it in the tests
|
||||
void app.prepare().then(() => {
|
||||
createServer(async (req, res) => {
|
||||
createServer((req, res) => {
|
||||
const parsedUrl = parse(req.url, true)
|
||||
await handle(req, res, parsedUrl)
|
||||
}).listen(port, () => {
|
||||
|
||||
@@ -39,6 +39,8 @@ export async function initPayloadE2ENoConfig<T extends GeneratedTypes<T>>({
|
||||
|
||||
const port = 3000
|
||||
process.env.PORT = String(port)
|
||||
process.env.PAYLOAD_DISABLE_DEPENDENCY_CHECKER = 'true'
|
||||
|
||||
const serverURL = `http://localhost:${port}`
|
||||
|
||||
await startMemoryDB()
|
||||
|
||||
@@ -8,6 +8,7 @@ process.env.PAYLOAD_DROP_DATABASE = 'true'
|
||||
process.env.PAYLOAD_PUBLIC_CLOUD_STORAGE_ADAPTER = 's3'
|
||||
|
||||
process.env.NODE_OPTIONS = '--no-deprecation'
|
||||
process.env.PAYLOAD_DISABLE_DEPENDENCY_CHECKER = 'true'
|
||||
|
||||
const databaseAdapters = {
|
||||
mongodb: `
|
||||
|
||||
Reference in New Issue
Block a user