Files
lobehub/scripts/migrateServerDB/errorHint.js
Arvin Xu f2ab2fcef6 ♻️ refactor: remove NEXT_PUBLIC_SERVICE_MODE env and use server by default (#10017)
* remove NEXT_PUBLIC_SERVICE_MODE

* update

* fix tests

* update e2e workflow

* update config

* Rename DATABASE_TEST_URL to DATABASE_URL
2025-11-04 00:34:37 +08:00

31 lines
1.0 KiB
JavaScript

const PGVECTOR_HINT = `⚠️ Database migrate failed due to \`pgvector\` extension not found. Please install the \`pgvector\` extension on your postgres instance.
1) if you are using docker postgres image:
you can just use \`pgvector/pgvector:pg16\` image instead of \`postgres\`, e.g:
\`\`\`
docker run -p 5432:5432 -d --name pg -e POSTGRES_PASSWORD=mysecretpassword pgvector/pgvector:pg16
\`\`\`
2) if you are using cloud postgres instance, please contact your cloud provider for help.
if you have any other question, please open issue here: https://github.com/lobehub/lobe-chat/issues
`;
const DB_FAIL_INIT_HINT = `------------------------------------------------------------------------------------------
⚠️ Database migrate failed due to not find the db instance.
if you are using docker postgres image, you may need to set DATABASE_DRIVER to node
\`\`\`
DATABASE_DRIVER=node
\`\`\`
if you have any other question, please open issue here: https://github.com/lobehub/lobe-chat/issues
`;
module.exports = {
DB_FAIL_INIT_HINT,
PGVECTOR_HINT,
};