Hey everyone, I’m having an issue deploying a Vue/Vite app through self hosted Appwrite Sites and could use some help.
Setup:
- Appwrite is self-hosted with Traefik
- Repo: n0obscertified/voizle
- Root directory: video_chat
- Framework: Vue 3 + Vite
- Build command: npm run build
- Output directory: dist
- Custom domain: collab.voyzly.com
DNS, TLS, and Traefik appear to be working correctly. The domain resolves to the server, the SSL certificate is valid, and the request reaches Appwrite.
However, every request to / waits about 30 seconds and then returns:
HTTP 408 Synchronous function execution timed out. Use asynchronous execution instead, or ensure the execution duration doesn't exceed 30 seconds.
The Appwrite log shows:
http.method HEAD http.path / http.response.code 408 Appwrite\Extend\Exception: Synchronous function execution timed out.
The app is a normal static Vite SPA and does not use SSR. Its package scripts are:
"dev": "vite --host", "build": "vite build", "preview": "vite preview"
It seems like Appwrite may be treating the site as a function-backed or SSR deployment instead of serving the generated dist directory as a static site.
Has anyone seen this before? Is there a setting that controls static versus SSR/function execution for Sites, or something specific I need to change in the deployment configuration?
I can help with this. From what you described, it sounds like Appwrite is treating the deployment as a dynamic/SSR site instead of serving the static dist output, which is why requests are timing out and hitting the function execution limit. Quick question: when you created the Site, did you configure it as a static site, or is there a server entrypoint (like server.js or index.js) defined in the deployment?
Hi I actually found the solution above. , I wish it was as simple as toggling between an ssr and static site but it was not
we just merged a solution that seems to fix the exact problem here - https://github.com/appwrite/appwrite/pull/13068
Recommended threads
- Appwrite-injected variables are not avai...
I am using rust-1.83 as a runtime and try to access APPWRITE_FUNCTION_API_ENDPOINT or APPWRITE_FUNCTION_API_KEY during runtime. Both are not set during my execu...
- OAuth Missing redirect URL
Hello all, on a Flutter mobile app with latest Appwrite dependency (25.4.0) I always got "Missing redirect URL" - "Your OAuth login flow is missing a proper red...
- relationships bug or error idk
hey every one, am using am using appwrite on a project and ran into a problem where by created a relationship and two way to be specific and it is stuck on proc...