mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 21:49:37 -04:00
Fix asset path in asset fingeprinter
The asset fingerprinter was hard coded to always point to `/static`. It needs to change depending on which environment the app is running in.
This commit is contained in:
@@ -103,6 +103,7 @@ def create_app(application):
|
||||
notify_environment = os.environ['NOTIFY_ENVIRONMENT']
|
||||
|
||||
application.config.from_object(configs[notify_environment])
|
||||
asset_fingerprinter._asset_root = application.config['ASSET_PATH']
|
||||
|
||||
init_app(application)
|
||||
antivirus_client.init_app(application)
|
||||
|
||||
@@ -113,6 +113,7 @@ class Test(Development):
|
||||
ANTIVIRUS_API_KEY = 'test-antivirus-secret'
|
||||
|
||||
ASSET_DOMAIN = 'static.example.com'
|
||||
ASSET_PATH = 'https://static.example.com/'
|
||||
|
||||
|
||||
class Preview(Config):
|
||||
|
||||
Reference in New Issue
Block a user