Unable to change reference from static2.sharepointonline.com in SPFx project #29697
Closed
2 tasks done
Labels
Fluent UI react (v8)
Issues about @fluentui/react (v8)
Libraries
Node version: v8.17.0
Package version(s):
System Info
Are you reporting Accessibility issue?
no
Reproduction
https://github.com/jlara005/TestAppCustomizer
Bug Description
I am working on a SharePoint SE on-premises SPFx application customizer project and because of security reasons there is no internet access. The fonts keep being fetched from https://static2.sharepointonline.com/files/fabric/assets/fonts.
I have tried to set the fontBaseUrl window property before all imports on the main entrypoint file TestAppCustomizerApplicationCustomizer.ts file and the reference to static2.sharepointonline.com still remains. Seems like the imports are being evaluated before the property is being set. How can I set this on an application customizer SPFx project?
Actual behavior:
window.FabricConfig = {
fontBaseUrl: 'https://mycdn.com'
};
Expected behavior:
Related Issues
This issue is related to 11477 which was never really given a solution: #11477
Logs
No response
Requested priority
Blocking
Products/sites affected
No response
Are you willing to submit a PR to fix?
yes
Validations
The text was updated successfully, but these errors were encountered: