Use Gitea proxy backend for faster CMS (#309)
All checks were successful
Website Prod/Test / Produktivumgebung (push) Successful in 15s
Website Prod/Test / Testumgebung (push) Successful in 9s

Reviewed-on: #309
This commit is contained in:
Denys Konovalov 2024-12-28 12:20:07 +01:00
parent eb4fac823a
commit f717d4f1dc
4 changed files with 6 additions and 6 deletions

View File

@ -20,7 +20,7 @@ import { GCGThemeDark, GCGThemeLight } from "./themes.js";
const config = { const config = {
backend: { backend: {
name: "gitea", name: "gitea-large",
repo: "gcg/gcg-website", repo: "gcg/gcg-website",
branch: "main", branch: "main",
api_root: "https://git.cantorgymnasium.de/api/v1", api_root: "https://git.cantorgymnasium.de/api/v1",

View File

@ -11,7 +11,7 @@ import { GCGThemeDark, GCGThemeLight } from "./themes.js";
const config = { const config = {
backend: { backend: {
name: "gitea", name: "gitea-large",
repo: "gcg/gcg-website", repo: "gcg/gcg-website",
branch: "main", branch: "main",
api_root: "https://git.cantorgymnasium.de/api/v1", api_root: "https://git.cantorgymnasium.de/api/v1",

View File

@ -9,12 +9,12 @@
/> />
<link <link
rel="stylesheet" rel="stylesheet"
href="https://unpkg.com/@staticcms/app@^4.0.0/dist/main.css" href="https://assets.cantorgymnasium.de/static-cms/v4/main.css"
/> />
<title>Static CMS</title> <title>Static CMS</title>
</head> </head>
<body> <body>
<script src="https://unpkg.com/@staticcms/app@^4.0.0/dist/static-cms-app.js"></script> <script src="https://assets.cantorgymnasium.de/static-cms/v4/static-cms-app.js"></script>
<script type="module"> <script type="module">
import config from "./config/index.js"; import config from "./config/index.js";
// imports // imports

View File

@ -9,12 +9,12 @@
/> />
<link <link
rel="stylesheet" rel="stylesheet"
href="https://unpkg.com/@staticcms/app@next/dist/main.css" href="https://assets.cantorgymnasium.de/static-cms/v4/main.css"
/> />
<title>Chronikverwaltung</title> <title>Chronikverwaltung</title>
</head> </head>
<body> <body>
<script src="https://unpkg.com/@staticcms/app@next/dist/static-cms-app.js"></script> <script src="https://assets.cantorgymnasium.de/static-cms/v4/static-cms-app.js"></script>
<script type="module"> <script type="module">
import config from "../../admin/config/schulchronik.js"; import config from "../../admin/config/schulchronik.js";
// imports // imports