You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
The error message "connect ECONNREFUSED 127.0.0.1:5432" indicates that the application is trying to connect to a PostgreSQL database on the local machine (127.0.0.1) on port 5432, but the connection is being refused. Nuxt/content uses the default configuration (sqlite). I have also tried to specify in config that it is sqlite but nothing, it does not work: it always gives me the same error.
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered:
In order to deploy on Vercel, Content module requires a small database to store/retrieve contents in performant way.
In Vercel it is not possible yet to create local sqlite database. However there is some database providers that offer free tier to use with Nuxt Content.
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.
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: