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
- Functions never end and always fail (sta...
Hi ! I'm using Appwrite Cloud Pro and function execution from appwrite website is KO. Deploying starter function template, execution is always Failed and the ...
- My function executions console if overwh...
It seems the requests are getting processed correctly but it is using a older version of the backend. And it seems the cron requests done an hour ago are shown ...
- Iam getting 500 when i click on the proj...