mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-24 03:57:06 -04:00
Refactor handling of environment variables (#2303)
* Refactor environment variables Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
e412115a78
commit
39a4125cb0
85 changed files with 624 additions and 461 deletions
|
@ -4,7 +4,6 @@
|
|||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { customizeAssetsUrl } from '../../utils/customize-assets-url'
|
||||
import { defaultConfig } from '../../api/common/default-config'
|
||||
|
||||
/**
|
||||
|
@ -14,7 +13,7 @@ import { defaultConfig } from '../../api/common/default-config'
|
|||
* @throws {Error} if the content can't be fetched
|
||||
*/
|
||||
export const fetchFrontPageContent = async (): Promise<string> => {
|
||||
const response = await fetch(customizeAssetsUrl + 'intro.md', {
|
||||
const response = await fetch('public/intro.md', {
|
||||
...defaultConfig,
|
||||
method: 'GET'
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue