Skip to content

Commit b721d1b

Browse files
the app no longer needs to know about the cdn domain
1 parent 0ad223c commit b721d1b

File tree

4 files changed

+1
-12
lines changed

4 files changed

+1
-12
lines changed

app.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
"FASTLY_API_KEY": {
77
"required": false
88
},
9-
"FASTLY_CDN_URL": {
10-
"required": false
11-
},
129
"FASTLY_SERVICE_ID": {
1310
"required": false
1411
},

app/services/legacy-module-mappings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default Service.extend({
3232
},
3333

3434
fetch() {
35-
return fetch(`${config.APP.cdnUrl}/assets/mappings.json`);
35+
return fetch('/assets/mappings.json');
3636
},
3737

3838
getModule(name, documentedModule) {

config/environment.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ module.exports = function(environment) {
2525
// Here you can pass flags/options to your application instance
2626
// when it is created
2727
scrollContainerSelector: 'body, html',
28-
cdnUrl: process.env.FASTLY_CDN_URL ? `https://${process.env.FASTLY_CDN_URL}` : 'https://ember-api-docs-frontend.global.ssl.fastly.net'
2928
},
3029

3130
fastboot: {

ember-cli-build.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,9 @@ const Funnel = require('broccoli-funnel');
55
const mergeTrees = require('broccoli-merge-trees');
66

77
module.exports = function(defaults) {
8-
let prepend = '';
9-
if ('FASTLY_CDN_URL' in process.env) {
10-
prepend = `https://${process.env.FASTLY_CDN_URL}/`;
11-
}
12-
138
let app = new EmberApp(defaults, {
149
fingerprint: {
1510
extensions: ['js', 'css', 'jpg', 'png', 'gif', 'map', 'svg', 'webmanifest'],
16-
prepend,
1711
generateAssetMap: true
1812
},
1913
sassOptions: {
@@ -31,7 +25,6 @@ module.exports = function(defaults) {
3125
},
3226
'asset-cache': {
3327
version: '4', //Might have to change this with the app build,
34-
prepend
3528
},
3629
svgJar: {
3730
sourceDirs: ['public/assets/images']

0 commit comments

Comments
 (0)