Skip to content

Commit

Permalink
Fix suggested code snippet (#9288)
Browse files Browse the repository at this point in the history
While using RedwoodJS I noticed I got suggested a TOML code snippet
that's missing some trailing commas. This PR adds them:

**Before**
```toml title="redwood.toml"
   includeEnvironmentVariables = [
     "AUTH0_DOMAIN"
     "AUTH0_CLIENT_ID"
     "AUTH0_REDIRECT_URI"
     "AUTH0_AUDIENCE"
   ]
```
**After**
```toml title="redwood.toml"
   includeEnvironmentVariables = [
     "AUTH0_DOMAIN",
     "AUTH0_CLIENT_ID",
     "AUTH0_REDIRECT_URI",
     "AUTH0_AUDIENCE"
   ]
```
  • Loading branch information
pepicrft authored and jtoar committed Nov 3, 2023
1 parent 7e4bf2e commit 9555fcd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions packages/auth-providers/auth0/setup/src/setupHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ export async function handler({ force: forceArg }: Args) {
'',
'```toml title="redwood.toml"',
'includeEnvironmentVariables = [',
' "AUTH0_DOMAIN"',
' "AUTH0_CLIENT_ID"',
' "AUTH0_REDIRECT_URI"',
' "AUTH0_DOMAIN",',
' "AUTH0_CLIENT_ID",',
' "AUTH0_REDIRECT_URI",',
' "AUTH0_AUDIENCE"',
']',
'```',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ export async function handler({ force: forceArg }: Args) {
'',
'```toml title="redwood.toml"',
'includeEnvironmentVariables = [',
' "AZURE_ACTIVE_DIRECTORY_CLIENT_ID"',
' "AZURE_ACTIVE_DIRECTORY_AUTHORITY"',
' "AZURE_ACTIVE_DIRECTORY_REDIRECT_URI"',
' "AZURE_ACTIVE_DIRECTORY_CLIENT_ID",',
' "AZURE_ACTIVE_DIRECTORY_AUTHORITY",',
' "AZURE_ACTIVE_DIRECTORY_REDIRECT_URI",',
' "AZURE_ACTIVE_DIRECTORY_LOGOUT_REDIRECT_URI"',
']',
'```',
Expand Down
4 changes: 2 additions & 2 deletions packages/auth-providers/supabase/setup/src/setupHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ export const handler = async ({ force: forceArg }: Args) => {
'',
'```toml title="redwood.toml"',
'includeEnvironmentVariables = [',
' "SUPABASE_URL"',
' "SUPABASE_KEY"',
' "SUPABASE_URL",',
' "SUPABASE_KEY",',
']',
'```',
'',
Expand Down

0 comments on commit 9555fcd

Please sign in to comment.