♻️ 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
This commit is contained in:
Arvin Xu
2025-11-04 00:34:37 +08:00
committed by GitHub
parent 3eaa645fb0
commit f2ab2fcef6
13 changed files with 23 additions and 35 deletions

View File

@@ -15,13 +15,7 @@ if you have any other question, please open issue here: https://github.com/lobeh
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
if you are using docker postgres image, you may need to set DATABASE_DRIVER to node
\`\`\`
DATABASE_DRIVER=node