-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Blank template with new vercel postgres fails on pnpm run build
& vercel deploy
#12197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Here is workaround which appears to work for now - ignore in next config import { withPayload } from '@payloadcms/next/withPayload'
/** @type {import('next').NextConfig} */
const nextConfig = {
webpack: (config, { webpack }) => {
config.plugins.push(
new webpack.IgnorePlugin({
resourceRegExp: /^pg-native$|^cloudflare:sockets$/,
}),
)
return config
},
}
export default withPayload(nextConfig, { devBundleServerPackages: false }) |
Please add a reproduction in order for us to be able to investigate. Depending on the quality of reproduction steps, this issue may be closed if no reproduction is provided. Why was this issue marked with the
|
I have the same issue with a payload project hosted on vercel and neon db after updating to the latest dependencies. |
Same issue running a local build with a dockerized pg server |
Steps to reproduce:
|
@agentgill Lock pg-cloudflare version on 1.1.1 to solve this issue
|
me too |
same here, but the @agentgill fix worked for me |
Already fixed in 3.36.0 |
Describe the Bug
Blank template with new vercel postgres fails on
pnpm run build
& vercel deployLink to the code that reproduces this issue
pnpm run build
Reproduction Steps
Create a new postgres database on vercel (v17)
Create new blank payload using
pnpx create-payload-app@latest
- accept defaults include vercel postgres and enter URL from new vercel neon dbRun
pnpm run dev
to test localhost:3000 and create first user, the database appears workingRun
pnpm run build
- generate error in descriptionDeployments on vercel - generate error in description
Which area(s) are affected? (Select all that apply)
db-vercel-postgres
Environment Info
The text was updated successfully, but these errors were encountered: