Merge pull request #272 from vietnamesekid/main

feat: integrate @t3-oss/env for environment variable management across the application
This commit is contained in:
Maze
2025-07-15 12:20:55 +02:00
committed by GitHub
16 changed files with 118 additions and 37 deletions
@@ -7,9 +7,10 @@ import { usePlaybackStore } from "@/stores/playback-store";
import { Button } from "@/components/ui/button";
import { useState } from "react";
import type { TimelineElement } from "@/types/timeline";
import { env } from "@/env";
// Only show in development
const SHOW_DEBUG_INFO = process.env.NODE_ENV === "development";
const SHOW_DEBUG_INFO = env.NODE_ENV === "development";
interface ActiveElement {
element: TimelineElement;
+2 -1
View File
@@ -8,6 +8,7 @@ import { useSession } from "@opencut/auth/client";
import { getStars } from "@/lib/fetch-github-stars";
import { useEffect, useState } from "react";
import Image from "next/image";
import { env } from "@/env";
export function Header() {
const { data: session } = useSession();
@@ -40,7 +41,7 @@ export function Header() {
Contributors
</Button>
</Link>
{process.env.NODE_ENV === "development" ? (
{env.NODE_ENV === "development" ? (
<Link href="/projects">
<Button size="sm" className="text-sm ml-4">
Projects