fix: gitea backend + allowedHosts + admin route

This commit is contained in:
ctao
2026-07-24 19:59:45 +02:00
parent a1c85d73c7
commit c2016e723f
4 changed files with 29 additions and 24 deletions
+3
View File
@@ -6,6 +6,9 @@ export default defineConfig({
server: { port: 4321, host: true },
vite: {
server: {
// Vite blocks unknown Host headers by default; the demo is viewed through an
// ephemeral cloudflared quick tunnel, so allow any *.trycloudflare.com host.
allowedHosts: ['.trycloudflare.com'],
// Same-origin path for the Sveltia/Decap local backend proxy (default port
// moved to 8082 to avoid colliding with Metro on 8081). Proxying it here
// means the CMS admin talks to one origin, so editing also works through the