You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.2 KiB
JavaScript
37 lines
1.2 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.
|
|
|
|
1) You might not switch to server db mode, please set the env blow and try again:
|
|
|
|
\`\`\`
|
|
NEXT_PUBLIC_SERVICE_MODE=server
|
|
\`\`\`
|
|
|
|
2) 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,
|
|
};
|