File tree Expand file tree Collapse file tree 8 files changed +32
-2
lines changed
Expand file tree Collapse file tree 8 files changed +32
-2
lines changed Original file line number Diff line number Diff line change 11API_URL = https://api.dev.ror.org
22SENTRY_DSN = https://1c334995f85448b1afa561c8ccf13791@sentry.io/1422597
3+ BASE_URL = https://dev.ror.org
Original file line number Diff line number Diff line change 11API_URL = https://api.ror.org
22SENTRY_DSN = https://1c334995f85448b1afa561c8ccf13791@sentry.io/1422597
3+ BASE_URL = https://ror.org
Original file line number Diff line number Diff line change 11API_URL = https://api.staging.ror.org
22SENTRY_DSN = https://1c334995f85448b1afa561c8ccf13791@sentry.io/1422597
3+ BASE_URL = https://staging.ror.org
Original file line number Diff line number Diff line change 1818
1919 < link rel ="stylesheet " href ="{{rootURL}}assets/vendor.css " type ='text/css '>
2020
21- < link rel ="stylesheet " href ="https://ror.org /css/hugo-ror.css?v4 ">
21+ < link rel ="stylesheet " href ="{{content-for 'baseURL'}} /css/hugo-ror.css?v4 ">
2222 < link rel ="stylesheet " href ="{{rootURL}}assets/ror-app.css " type ='text/css '>
2323 < link rel ="shortcut icon " href ="/favicon.ico " type ="image/x-icon ">
2424 < link rel ="icon " href ="/favicon.ico " type ="image/x-icon ">
Original file line number Diff line number Diff line change 22
33module . exports = function ( environment ) {
44 const pkg = require ( '../package.json' ) ;
5-
5+
66 let ENV = {
77 modulePrefix : 'ror-app' ,
88 environment,
@@ -20,6 +20,7 @@ module.exports = function(environment) {
2020 } ,
2121
2222 API_URL : process . env . API_URL || "https://api.ror.org" ,
23+ BASE_URL : process . env . BASE_URL || null ,
2324 SENTRY_DSN : process . env . SENTRY_DSN || null ,
2425 VERSION : pkg . version ,
2526 APP_NAME : pkg . name ,
Original file line number Diff line number Diff line change 1+ 'use strict' ;
2+
3+ module . exports = {
4+ name : require ( './package' ) . name ,
5+
6+ isDevelopingAddon ( ) {
7+ return true ;
8+ } ,
9+ contentFor : function ( type , config ) {
10+ if ( type === 'baseURL' ) {
11+ return `${ config . BASE_URL } `
12+ ;
13+ }
14+ }
15+ } ;
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " base-url" ,
3+ "keywords" : [
4+ " ember-addon"
5+ ]
6+ }
Original file line number Diff line number Diff line change 6666 "dependencies" : {
6767 "@sentry/browser" : " ^5.10.2" ,
6868 "@sentry/integrations" : " ^5.10.2"
69+ },
70+ "ember-addon" : {
71+ "paths" : [
72+ " lib/base-url"
73+ ]
6974 }
7075}
You can’t perform that action at this time.
0 commit comments