File tree 3 files changed +9
-3
lines changed
3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ class App extends Component {
91
91
const page = pages [ store . modal . page ] || { } ;
92
92
const pageLinkHandler = ( ) => this . handlePage ( page . link ) ;
93
93
94
- if ( process . env . NODE_ENV === "development" && store . siteURL === null ) {
94
+ if ( store . isLocal && store . siteURL === null ) {
95
95
return (
96
96
< SiteURLForm
97
97
devMode = { store . siteURL != null }
@@ -132,7 +132,7 @@ class App extends Component {
132
132
{ page . link_text }
133
133
</ button >
134
134
) }
135
- { process . env . NODE_ENV === "development" ? (
135
+ { store . isLocal ? (
136
136
< SiteURLForm
137
137
devMode = { store . siteURL != null }
138
138
onSiteURL = { store . siteURL ? this . clearSiteURL : this . handleSiteURL }
Original file line number Diff line number Diff line change @@ -69,7 +69,8 @@ function setStyle(el, css) {
69
69
const localHosts = {
70
70
localhost : true ,
71
71
"127.0.0.1" : true ,
72
- "0.0.0.0" : true
72
+ "0.0.0.0" : true ,
73
+ "identity.netlify.com" : true
73
74
} ;
74
75
75
76
function instantiateGotrue ( APIUrl ) {
@@ -84,6 +85,7 @@ function instantiateGotrue(APIUrl) {
84
85
parts . push ( "/" ) ;
85
86
}
86
87
parts . push ( ".netlify/identity" ) ;
88
+ store . setIsLocal ( isLocal ) ;
87
89
store . setSiteURL ( siteURL ) ;
88
90
return new GoTrue ( { APIUrl : parts . join ( "" ) , setCookie : ! isLocal } ) ;
89
91
}
Original file line number Diff line number Diff line change @@ -68,6 +68,10 @@ store.loadSettings = action(function loadSettings() {
68
68
) ;
69
69
} ) ;
70
70
71
+ store . setIsLocal = action ( function setIsLocal ( isLocal ) {
72
+ store . isLocal = isLocal ;
73
+ } ) ;
74
+
71
75
store . setSiteURL = action ( function setSiteURL ( url ) {
72
76
store . siteURL = url ;
73
77
} ) ;
You can’t perform that action at this time.
0 commit comments