using debug credentials provider whenever development mode is active

This commit is contained in:
Yannic Kilcher
2022-12-27 00:14:50 +01:00
parent 78ab698ca9
commit d9dec84818
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -65,9 +65,9 @@ If you're doing active development we suggest the following workflow:
### Using debug user credentials
If you want to quickly test the website, you can use the debug user credentials workflow:
Whenever the website runs in development mode, you can use the debug credentials provider to log in without fancy emails or OAuth.
1. Run `DEBUG_FAKE_USERS=true npm run dev` to start the website.
1. Development mode is automatically active when you start the website with `npm run dev`.
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.
+1 -1
View File
@@ -34,7 +34,7 @@ if (process.env.DISCORD_CLIENT_ID) {
);
}
if (boolean(process.env.DEBUG_FAKE_USERS)) {
if (boolean(process.env.NODE_ENV === "development")) {
providers.push(
CredentialsProvider({
name: "Debug Credentials",