Skip to content

Commit cb683dd

Browse files
committed
fix(server): undefined domain env variable causing issues
1 parent 9f6bdc9 commit cb683dd

File tree

1 file changed

+3
-3
lines changed
  • app/templates/server/config/environment

1 file changed

+3
-3
lines changed

Diff for: app/templates/server/config/environment/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,19 @@ var all = {
4444
facebook: {
4545
clientID: process.env.FACEBOOK_ID || 'id',
4646
clientSecret: process.env.FACEBOOK_SECRET || 'secret',
47-
callbackURL: process.env.DOMAIN + '/auth/facebook/callback'
47+
callbackURL: process.env.DOMAIN || '' + '/auth/facebook/callback'
4848
},
4949
<% } %><% if(filters.twitterAuth) { %>
5050
twitter: {
5151
clientID: process.env.TWITTER_ID || 'id',
5252
clientSecret: process.env.TWITTER_SECRET || 'secret',
53-
callbackURL: process.env.DOMAIN + '/auth/twitter/callback'
53+
callbackURL: process.env.DOMAIN || '' + '/auth/twitter/callback'
5454
},
5555
<% } %><% if(filters.googleAuth) { %>
5656
google: {
5757
clientID: process.env.GOOGLE_ID || 'id',
5858
clientSecret: process.env.GOOGLE_SECRET || 'secret',
59-
callbackURL: process.env.DOMAIN + '/auth/google/callback'
59+
callbackURL: process.env.DOMAIN || '' + '/auth/google/callback'
6060
}<% } %>
6161
};
6262

0 commit comments

Comments
 (0)