mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
[BUGFIX] Fix paths for embedded media assets (#1150)
This commit is contained in:
parent
1a76241ad4
commit
b770d3cb6c
7
web/src/hooks/AssetPath.ts
Normal file
7
web/src/hooks/AssetPath.ts
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
import { useBasePath } from "./BasePath";
|
||||||
|
|
||||||
|
__webpack_public_path__ = "/"
|
||||||
|
|
||||||
|
if (useBasePath() !== "") {
|
||||||
|
__webpack_public_path__ = useBasePath() + "/"
|
||||||
|
}
|
|
@ -1,3 +1,4 @@
|
||||||
|
import './hooks/AssetPath';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import ReactDOM from 'react-dom';
|
import ReactDOM from 'react-dom';
|
||||||
import './index.css';
|
import './index.css';
|
||||||
|
|
1
web/src/react-app-env.d.ts
vendored
1
web/src/react-app-env.d.ts
vendored
|
@ -1 +1,2 @@
|
||||||
/// <reference types="react-scripts" />
|
/// <reference types="react-scripts" />
|
||||||
|
declare var __webpack_public_path__: string;
|
Loading…
Reference in New Issue
Block a user