mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-09-09 11:15:08 +08:00
added environment variable DEBUG_LOGIN to display debug credentials provider even in production mode
This commit is contained in:
+2
-2
@@ -65,9 +65,9 @@ If you're doing active development we suggest the following workflow:
|
||||
|
||||
### Using debug user credentials
|
||||
|
||||
Whenever the website runs in development mode, you can use the debug credentials provider to log in without fancy emails or OAuth.
|
||||
You can use the debug credentials provider to log in without fancy emails or OAuth.
|
||||
|
||||
1. Development mode is automatically active when you start the website with `npm run dev`.
|
||||
1. This feature is automatically on in development mode, i.e. when you run `npm run dev`. In case you want to do the same with a production build (for example, the docker image), then run the website with environment variable `DEBUG_LOGIN=true`.
|
||||
1. Use the `Login` button in the top right to go to the login page.
|
||||
1. You should see a section for debug credentials. Enter any username you wish, you will be logged in as that user.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user