For some reason when I add nuxt ui to my nuxt 4 project, appwrite will build the project but the project website will load indefinitely. Without adding Nuxt UI, a Nuxt 4 project builds fine. I have tested this with the npm create nuxt@latest -- -t github:nuxt-ui-templates/starter project and a regular empty project. I am unsure if this is a nuxt ui/nuxt 4 issue or if I have to change something somewhere in how appwrite builds the page, both for ssr and static.
This builds fine under Netlify
Hi, I'd like to share a possible fix that I found. You may be having the same issue:
Fix: 408 Timeout / SSR + Nuxt UI on Appwrite
If you're deploying Nuxt 4 + SSR to Appwrite Sites and seeing deployment success but runtime crashes, this fix is for you.
The Issue
Enabling @nuxt/ui causes the runtime container (openruntimes/node) to restart indefinitely, leading to HTTP 408 Timeouts.
Symptoms
Build succeeds, but logs show: Error [ERR_MODULE_NOT_FOUND]: ... @iconify/utils/lib/emoji/test/parse.js
Static (nuxt generate) works, but SSR fails specifically when @nuxt/ui is present.
Root Cause: Appwrite ModClean Appwrite’s runtimes use modclean to prune unnecessary files. Because Nitro treats @iconify as an external dependency, required files are not bundled into .output/server. Appwrite then deletes these "unnecessary" files, causing the Node process to crash when it tries to resolve them at runtime.
The Fix
Force Nitro to inline (bundle) the problematic dependencies so they aren't stripped away.
Update your nuxt.config.ts:
TypeScript
export default defineNuxtConfig({
modules: ['@nuxt/ui'], // and others
ssr: true,
compatibilityDate: '2025-01-15',
nitro: {
preset: 'node-server',
externals: {
inline: ['@nuxt/ui', '@iconify/utils', '@iconify/types']
}
}
Why this works
By adding these to nitro.externals.inline, you force Nitro to:
- Bundle these packages directly into the server output.
- Prevent Appwrite’s cleanup process from stripping "hidden" dependencies.
Resolve the ERR_MODULE_NOT_FOUND and the resulting 408 timeout.
Recommended threads
- Accessing Database via Console
Hi everyone, I am running a self-hosted Appwrite v1.9.0 instance. When I click on one particular database in the Console, a loading indicator appears at the top...
- Apple OAuth2 settings auto-disable every...
Hello, I'm on Appwrite 1.8.1 at the moment. I'm using on prod Apple Oauth and it keeps disabling itself every night. I don't know where to look for the solutio...
- Sites settings shows ALL build runtimes
When looking at the build runtimes of site to update from node22 to node24, i saw that unlike the Functions the Sites shows ALL build runtimes, even non-install...