-
-
Notifications
You must be signed in to change notification settings - Fork 659
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
dependency pg in production + refresh page error #3080
Comments
In order to deploy on Vercel, Content module requires a small database to store/retrieve contents in performant way. For example you can try integrate Neon database to your project. Once you integrate it with your project, just redeploy. Module will automatically detect the database using Vercel's environment variables. |
I understand. Thank you for your response. I suspected it was something like that. The strange thing is that I have another site with this configuration
That on Vercel works perfectly without an external db. They are slightly older packages. The server configuration is the same. How come? Another question: for nuxt which other servers already have a local sqlite db? |
I configured the db within Vercel/Storage. I confirm that with NeonDB it works perfectly without modifying anything. |
Hi @farnabaz, Somehow that's not working for me... I created a neon DB on Vercel and added my project to it. I try to redeploy it, but without success. ![]() ![]() ![]() Any idea? Update |
@stijns96 try |
Did that work for you? Update |
it worked, without doing anything. the preview also works. Try deleting nodex_modules and .lock and reinstalling the updated packages |
Environment
Server: Vercel
package:
Version
v3
Reproduction
.
Description
In developer mode I don't have any problems.
However, when I go to production the deployment fails because it tells me that the "pg" dependency is missing.
Installing pg bypasses the problem but the deployment still fails again due to a different error
[nuxt] [request error] [unhandled] [500] connect ECONNREFUSED 127.0.0.1:5432
The point is that if I navigate between the pages the data (markdown + yaml) is displayed correctly in the pages, while if I refresh the data is not loaded.
I have tried the various solutions proposed such as updating the packages and reinstalling node_modules from scratch but the problem persists.
Here are some additional details that might be useful:
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: