Static Astro site returns empty HTML on all routes except root on Appwrite Sites
- 0
- Sites
- Web
- Cloud

Environment
- Appwrite Sites: Cloud
- Framework: Astro v5.13.2
- Output mode: Static (output: 'static')
- Build command: npm run build
- Output directory: dist
Problem Description When deploying a static Astro site to Appwrite Sites, all routes except the root (/) return empty HTML responses (<html><head></head><body></body></html>). The root route work perfectly.
Build Output Structure The Astro build correctly generates static files: dist/ ├── index.html (works at /) ├── test/ │ └── index.html (doesn't work at /test) └── _astro/ └── [assets]
Astro Configuration
// astro.config.mjs ` import { defineConfig } from 'astro/config'; import svelte from '@astrojs/svelte'; import tailwindcss from '@tailwindcss/vite';
export default defineConfig({ output: 'static', integrations: [svelte()], vite: { plugins: [tailwindcss()] } });`
Expected Solution Appwrite Sites should serve the correct static HTML files for allroutes, matching the file structure in the dist directory, similar to how other static hosting providers handle Astro sites.
Recommended threads
- Custom Domain Verification fail
Hi, I am using a domain from 'get.tech'. I have updated the Name Servers to Appwrite NS records. I had my site hosted on Firebase before, so I removed its DNS r...
- 401 missing scopes
help me i implemented sign up and login and it works well. but after i impement verifcation i got `AppwriteException: app.xxxxxxxxxxxxxxxxx@service.fra.cloud.a...
- Bug - You have more than 2 projects
I have only one project, but not selected. Im free user. But header still showing that im required to select
