Skip to content

Commit

Permalink
Add course_id env variable and enforce min node version
Browse files Browse the repository at this point in the history
  • Loading branch information
ShreyasKallingal authored and Peter Perfect committed Apr 4, 2024
1 parent d02bfa8 commit 1c9f006
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ NEXTAUTH_URL='http://localhost:3000'
# Ably
ABLY_SERVER_API_KEY='<ABLY_SERVER_API_KEY>'
NEXT_PUBLIC_ABLY_CLIENT_API_KEY='<ABLY_CLIENT_API_KEY>'

# Course Info
NEXT_PUBLIC_COURSE_ID='<COURSE_ID>'
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "simple-office-hours-queue",
"version": "0.1.0",
"engines": {"node": ">=18.17"},
"private": true,
"prisma": {
"seed": "ts-node --compiler-options {\"module\":\"CommonJS\"} prisma/seed.ts"
Expand Down
2 changes: 1 addition & 1 deletion src/utils/constants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const COURSE_ID = "CS61B";
export const COURSE_ID = process.env.NEXT_PUBLIC_COURSE_ID;

export const EMAIL_REGEX =
/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i;
Expand Down

0 comments on commit 1c9f006

Please sign in to comment.