mirror of
https://github.com/OpenCut-app/OpenCut.git
synced 2026-07-13 21:52:53 +02:00
Merge pull request #272 from vietnamesekid/main
feat: integrate @t3-oss/env for environment variable management across the application
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user