Skip to content

Commit 1c9f006

Browse files
ShreyasKallingalPeter Perfect
authored andcommitted
Add course_id env variable and enforce min node version
1 parent d02bfa8 commit 1c9f006

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.env.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@ NEXTAUTH_URL='http://localhost:3000'
1414
# Ably
1515
ABLY_SERVER_API_KEY='<ABLY_SERVER_API_KEY>'
1616
NEXT_PUBLIC_ABLY_CLIENT_API_KEY='<ABLY_CLIENT_API_KEY>'
17+
18+
# Course Info
19+
NEXT_PUBLIC_COURSE_ID='<COURSE_ID>'

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "simple-office-hours-queue",
33
"version": "0.1.0",
4+
"engines": {"node": ">=18.17"},
45
"private": true,
56
"prisma": {
67
"seed": "ts-node --compiler-options {\"module\":\"CommonJS\"} prisma/seed.ts"

src/utils/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const COURSE_ID = "CS61B";
1+
export const COURSE_ID = process.env.NEXT_PUBLIC_COURSE_ID;
22

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

0 commit comments

Comments
 (0)