chore: bump next to 15.1.3 in the monorepo (#10211)

Bumps Next.js to the latest version `15.1.3`. This affects only internal
`package.json` files (in the root dir and test)

Fixes errors from here https://github.com/payloadcms/payload/pull/10209
This commit is contained in:
Sasha
2024-12-28 09:11:17 +02:00
committed by GitHub
parent 3218b0dcb6
commit 7a4d53afbf
6 changed files with 99 additions and 110 deletions

View File

@@ -1,3 +1,4 @@
import nextEnvImport from '@next/env'
import chalk from 'chalk'
import { createServer } from 'http'
import minimist from 'minimist'
@@ -58,6 +59,10 @@ if (shouldStartMemoryDB) {
await startMemoryDB()
}
// This is needed to forward the environment variables to the next process that were created after loadEnv()
// for example process.env.MONGODB_MEMORY_SERVER_URI otherwise app.prepare() will clear them
nextEnvImport.updateInitialEnv(process.env)
// Open the admin if the -o flag is passed
if (args.o) {
await open(`http://localhost:3000${adminRoute}`)