Web Developer
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 (). 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.