File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,12 @@ export function MakeswiftProvider({
1313 siteVersion : SiteVersion | null ;
1414} ) {
1515 return (
16- < ReactRuntimeProvider runtime = { runtime } siteVersion = { siteVersion } >
16+ < ReactRuntimeProvider
17+ apiOrigin = { process . env . NEXT_PUBLIC_MAKESWIFT_API_ORIGIN }
18+ appOrigin = { process . env . NEXT_PUBLIC_MAKESWIFT_APP_ORIGIN }
19+ runtime = { runtime }
20+ siteVersion = { siteVersion }
21+ >
1722 < RootStyleRegistry enableCssReset = { false } > { children } </ RootStyleRegistry >
1823 </ ReactRuntimeProvider >
1924 ) ;
Original file line number Diff line number Diff line change @@ -8,7 +8,9 @@ import { client } from './client';
88import { graphql } from './client/graphql' ;
99import { cspHeader } from './lib/content-security-policy' ;
1010
11- const withMakeswift = createWithMakeswift ( ) ;
11+ const withMakeswift = createWithMakeswift ( {
12+ appOrigin : process . env . NEXT_PUBLIC_MAKESWIFT_APP_ORIGIN ,
13+ } ) ;
1214const withNextIntl = createNextIntlPlugin ( {
1315 experimental : {
1416 createMessagesDeclaration : './messages/en.json' ,
You can’t perform that action at this time.
0 commit comments