File tree 2 files changed +16
-3
lines changed
2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -91,8 +91,13 @@ class App extends Component {
91
91
const page = pages [ store . modal . page ] || { } ;
92
92
const pageLinkHandler = ( ) => this . handlePage ( page . link ) ;
93
93
94
- if ( ! store . gotrue ) {
95
- return < SiteURLForm onSiteURL = { this . handleSiteURL } /> ;
94
+ if ( process . env . NODE_ENV === "development" && store . siteURL === null ) {
95
+ return (
96
+ < SiteURLForm
97
+ devMode = { store . siteURL != null }
98
+ onSiteURL = { store . siteURL ? this . clearSiteURL : this . handleSiteURL }
99
+ />
100
+ )
96
101
}
97
102
if ( ! store . settings ) {
98
103
return ;
@@ -127,7 +132,14 @@ class App extends Component {
127
132
{ page . link_text }
128
133
</ button >
129
134
) }
130
- < SiteURLForm devMode = "true" onSiteURL = { this . clearSiteURL } />
135
+ { process . env . NODE_ENV === "development" ? (
136
+ < SiteURLForm
137
+ devMode = { store . siteURL != null }
138
+ onSiteURL = { store . siteURL ? this . clearSiteURL : this . handleSiteURL }
139
+ />
140
+ ) : (
141
+ < div />
142
+ ) }
131
143
</ div >
132
144
) ;
133
145
}
Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ function instantiateGotrue(APIUrl) {
84
84
parts . push ( "/" )
85
85
}
86
86
parts . push ( ".netlify/identity" )
87
+ store . setSiteURL ( siteURL )
87
88
return new GoTrue ( { APIUrl : parts . join ( "" ) , setCookie : ! isLocal } )
88
89
}
89
90
if ( isLocal ) {
You can’t perform that action at this time.
0 commit comments