Skip to content

Commit

Permalink
Merge pull request #175 from crux-bphc/integrate-akshat-oke-cms-exten…
Browse files Browse the repository at this point in the history
…sion

Intgrated Akshat Oke's cms cred grabber extension
  • Loading branch information
soumitradev authored Jun 1, 2024
2 parents 2669061 + 39da389 commit 6828b75
Show file tree
Hide file tree
Showing 6 changed files with 2,506 additions and 1,810 deletions.
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ JWT_PUBLIC_KEY=""
NGINX_PORT=5000
SQIDS_ALPHABET="P1fF29hw8BARdJpoSUZIDnXVWNzcCeGrlgk0qbsMxjYKaE5uLTyOt376Hmv4Qi"
VITE_FRONTEND_URL="http://localhost:5000"
SESSION_MAX_AGE_MS=86400000
SESSION_MAX_AGE_MS=86400000
VITE_CMS_EXTENSION_ID="ebjldebpahljhpakgngnandakdbajdnj"
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ NGINX_PORT=5000
SQIDS_ALPHABET="P1fF29hw8BARdJpoSUZIDnXVWNzcCeGrlgk0qbsMxjYKaE5uLTyOt376Hmv4Qi"
VITE_FRONTEND_URL="http://localhost:5000"
SESSION_MAX_AGE_MS=86400000
VITE_CMS_EXTENSION_ID="ebjldebpahljhpakgngnandakdbajdnj"
```

Obviously, we'll use different creds in production.
Expand Down
2 changes: 2 additions & 0 deletions backend/src/config/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,6 @@ export const serverSchema = z.object({
NGINX_PORT: z.coerce.number().default(80),
SQIDS_ALPHABET: z.string().min(62),
SESSION_MAX_AGE_MS: z.coerce.number().default(86400000),
VITE_FRONTEND_URL: z.string().url().min(1),
VITE_CMS_EXTENSION_ID: z.string().min(1),
});
5 changes: 3 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@
"typescript": "^5.2.2",
"usehooks-ts": "^2.9.1",
"vite": "^5.0.8",
"zod": "^3.22.4"
"zod": "^3.22.4",
"@types/chrome": "^0.0.268"
},
"devDependencies": {
"@biomejs/biome": "1.4.1"
}
}
}
Loading

0 comments on commit 6828b75

Please sign in to comment.