RafaelGoulartB/next-ecommerce

Knex can't acess db.sqlite when are hosting in vercel

RafaelGoulartB opened this issue · 1 comments

When host the project in Vercel, knex can't read db.sqlite.

Now heroku-postbuild script entry is no longer required because heroku now automatically running npm run build .
To fix this please open package.json then edit like this:

{
  "scripts": {
    "dev": "next",
    "build": "next build",
    "start": "next start -p $PORT"
  }
}