Skip to content

Commit 0541a19

Browse files
committed
Add site url to frontend ENV config
1 parent ad88478 commit 0541a19

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

Gruntfile.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ module.exports = function (grunt) {
2424
development: 'http://0.0.0.0:3000/api/',
2525
production: '/api/'
2626
},
27+
site: {
28+
development: 'http://0.0.0.0:3000',
29+
production: ''
30+
},
2731
host: '0.0.0.0'
2832
};
2933

@@ -118,7 +122,8 @@ module.exports = function (grunt) {
118122
constants: {
119123
ENV: {
120124
name: 'development',
121-
apiUrl: '<%= yeoman.api.development %>'
125+
apiUrl: '<%= yeoman.api.development %>',
126+
siteUrl: '<%= yeoman.site.development %>'
122127
}
123128
}
124129
},
@@ -129,7 +134,8 @@ module.exports = function (grunt) {
129134
constants: {
130135
ENV: {
131136
name: 'production',
132-
apiUrl: '<%= yeoman.api.production %>'
137+
apiUrl: '<%= yeoman.api.production %>',
138+
siteUrl: '<%= yeoman.site.production %>'
133139
}
134140
}
135141
}

0 commit comments

Comments
 (0)