This is the repo for the UCLA Radio.
To get started, make sure you have git, Node.js, and npm all installed and configured.
In the desired location that you want to locally store your app, run the following in your terminal:
In order to access the app make sure to
then to run the app do
The build uses Firebase Admin (Firestore) in getStaticProps / getStaticPaths. You must set these server-side environment variables in your Vercel project:
-
Vercel Dashboard → your project → Settings → Environment Variables.
-
Add these for Production (and Preview if you want):
Name Description FIREBASE_PROJECT_IDYour Firebase project ID (e.g. ucla-radio-show-archive)FIREBASE_CLIENT_EMAILService account email from Firebase Console → Project Settings → Service Accounts FIREBASE_PRIVATE_KEYService account private key (full key including -----BEGIN PRIVATE KEY-----/-----END PRIVATE KEY-----). In Vercel you can paste the key with real newlines, or use\nfor line breaks; the app will normalize\nautomatically. -
Get the values from Firebase Console → Project Settings → Service accounts → Generate new private key, then use the
project_id,client_email, andprivate_keyfrom the downloaded JSON. -
Redeploy after saving the variables (or trigger a new deployment).
Without these, the build fails with 16 UNAUTHENTICATED when fetching show/episode data from Firestore.