mirror of
https://github.com/grafana/grafana.git
synced 2025-02-15 10:03:33 -06:00
16 lines
475 B
TypeScript
16 lines
475 B
TypeScript
declare let __webpack_public_path__: string;
|
|
|
|
/**
|
|
* Check if we are hosting files on cdn and set webpack public path
|
|
*/
|
|
if ((window as any).public_cdn_path) {
|
|
__webpack_public_path__ = (window as any).public_cdn_path;
|
|
}
|
|
|
|
// This is a path to the public folder without '/build'
|
|
(window as any).__grafana_public_path__ =
|
|
__webpack_public_path__.substring(0, __webpack_public_path__.lastIndexOf('build/')) || __webpack_public_path__;
|
|
|
|
import app from './app';
|
|
app.init();
|