Skip to content

Commit

Permalink
Fix use of wrong Tus endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
markspolakovs committed Aug 26, 2024
1 parent f386882 commit 767b22e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { checkSession } from "@/lib/auth";
import { UserProvider } from "@/components/CurrentUser";
import Script from "next/script";
import { FeatureFlagsProvider } from "@/components/FeatureFlags";
import { getTusEndpoint } from "@/lib/tus";
import { getPublicTusEndpoint } from "@/lib/tus";
import { UploadProgress } from "@/components/Uploader";

export const metadata: Metadata = {
Expand All @@ -32,7 +32,7 @@ export default async function RootLayout({
{`window.ENVIRONMENT = ${JSON.stringify(process.env.ENVIRONMENT)};`}
</Script>
<Script id="tus-endpoint" strategy="beforeInteractive">
{`window.TUS_ENDPOINT = ${JSON.stringify(getTusEndpoint())};`}
{`window.TUS_ENDPOINT = ${JSON.stringify(getPublicTusEndpoint())};`}
</Script>
</head>
<body>
Expand Down

0 comments on commit 767b22e

Please sign in to comment.