Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

base static url #47

Merged
merged 2 commits into from
May 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/app-router/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -14,6 +14,7 @@ export default function RootLayout({
<AuthProvider
projectId={process.env.NEXT_PUBLIC_DESCOPE_PROJECT_ID}
baseUrl={process.env.NEXT_PUBLIC_DESCOPE_BASE_URL}
baseStaticUrl={process.env.NEXT_PUBLIC_DESCOPE_BASE_STATIC_URL}
>
<html lang="en">
<body>{children}</body>
3 changes: 2 additions & 1 deletion examples/app-router/middleware.ts
Original file line number Diff line number Diff line change
@@ -2,7 +2,8 @@ import { authMiddleware } from '@descope/nextjs-sdk/server';

export default authMiddleware({
projectId: process.env.NEXT_PUBLIC_DESCOPE_PROJECT_ID,
baseUrl: process.env.NEXT_PUBLIC_DESCOPE_BASE_URL
baseUrl: process.env.NEXT_PUBLIC_DESCOPE_BASE_URL,
baseStaticUrl: process.env.NEXT_PUBLIC_DESCOPE_BASE_STATIC_URL
});

export const config = {
1 change: 1 addition & 0 deletions examples/pages-router/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@ export default function App({ Component, pageProps }) {
<AuthProvider
projectId={process.env.NEXT_PUBLIC_DESCOPE_PROJECT_ID}
baseUrl={process.env.NEXT_PUBLIC_DESCOPE_BASE_URL}
baseStaticUrl={process.env.NEXT_PUBLIC_DESCOPE_BASE_STATIC_URL}
>
<Component {...pageProps} />
</AuthProvider>
Loading