Skip to content

Commit

Permalink
chore: add new templates
Browse files Browse the repository at this point in the history
Added more information on how to fill the .env file
  • Loading branch information
royce-mathew committed Feb 18, 2025
1 parent 8e2ca3e commit ba923e2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 15 deletions.
33 changes: 19 additions & 14 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,30 +1,35 @@

# Firebase
## Private
### Templates for Documents.
NEXT_PUBLIC_MATH_TEMPLATE_DOC_ID="" # Document ID under the collection "documents"

### Authorization
AUTH_SECRET=""
AUTH_SECRET="" # You can use the CLI to generate an auth secret: `pnpm exec auth secret`

### Admin Credentials
FIREBASE_PROJECT_ID=""
### Admin Credentials. You can get this from the Firebase Project Settings.
FIREBASE_PROJECT_ID=""
FIREBASE_CLIENT_EMAIL=""
FIREBASE_PRIVATE_KEY=""

### Google Auth Login
### Google Auth Login. You can get this from the Google Developer Console.
AUTH_GOOGLE_ID=""
AUTH_GOOGLE_SECRET=""

## Github Auth Login
## Github Auth Login. You can get this from the Github Developer Settings.
AUTH_GITHUB_ID=""
AUTH_GITHUB_SECRET=""
AUTH_GITHUB_SECRET=""

### Roblox Related
ROBLOX_COOKIE=""
ROBLOX_COOKIE="" # You can get this from the browser cookies. Only required for devproduct forwarding.

# Public
NEXT_PUBLIC_FIREBASE_API_KEY=""
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=""
NEXT_PUBLIC_FIREBASE_PROJECT_ID=""
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=""
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=""
NEXT_PUBLIC_FIREBASE_APP_ID=""
NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID=""
NEXT_PUBLIC_FIREBASE_API_KEY="" # Firebase API Key
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN="" # Firebase Auth Domain
NEXT_PUBLIC_FIREBASE_PROJECT_ID="" # Firebase Project ID
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET="" # Firebase Storage Bucket
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID="" # Firebase Messaging Sender ID
NEXT_PUBLIC_FIREBASE_APP_ID="" # Firebase App ID
NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID="" # Firebase Measurement ID

NEXT_PUBLIC_ANALYTICS_ID="" # Google Analytics ID
6 changes: 5 additions & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,11 @@ export default function RootLayout({
<Toaster />
</ThemeProvider>
</body>
<GoogleAnalytics gaId="G-ZNSHY2T64H" />
{/* Google Analytics */}
{process.env.NODE_ENV === "production" &&
process.env.NEXT_PUBLIC_ANALYTICS_ID && (
<GoogleAnalytics gaId={process.env.NEXT_PUBLIC_ANALYTICS_ID} />
)}
</html>
)
}

0 comments on commit ba923e2

Please sign in to comment.