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

Commit

Permalink
base static url (#47)
Browse files Browse the repository at this point in the history
* base static url

* update react components
  • Loading branch information
nirgur authored May 30, 2024
1 parent 7b98dd4 commit 06118d4
Show file tree
Hide file tree
Showing 5 changed files with 184 additions and 181 deletions.
1 change: 1 addition & 0 deletions examples/app-router/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
3 changes: 2 additions & 1 deletion examples/app-router/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
1 change: 1 addition & 0 deletions examples/pages-router/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
Loading

0 comments on commit 06118d4

Please sign in to comment.