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
- All projects deleted
Hello, from the appwrite console last week I re-activated some of my old project and published them, yesterday I checked and none of the apps were working, now ...
- Authentication on custom Websocket Serve...
Hi, I want to use a custom Websocket Server (using Bun) for my application. However I cant really figure out authentication on custom servers. Session cookies ...
- cant resume project
Invalid console fingerprint event i try man time