You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of now, the generated ASSET_URL is always absolute. This is bad for local development, and my current (ugly) workaround is to keep config SITEURL empty.
The situation could be improved by the following change to generators.py -> StaticGenerator -> generate_context()
# Define the assets environment that will be passed to the# generators. The StaticGenerator must then be run first to have# the assets in the output_path before generating the templates.ifself.settings.get('RELATIVE_URLS'):
assets_url='./theme/'else:
assets_url=self.settings['SITEURL'] +'/theme/'assets_src=os.path.join(self.output_path, 'theme')
self.assets_env=AssetsEnvironment(assets_src, assets_url)
The text was updated successfully, but these errors were encountered:
As of now, the generated ASSET_URL is always absolute. This is bad for local development, and my current (ugly) workaround is to keep config SITEURL empty.
The situation could be improved by the following change to
generators.py -> StaticGenerator -> generate_context()
The text was updated successfully, but these errors were encountered: