NuxtN
Nuxt11mo ago
14 replies
sakens

Issues running Nuxt with NuxtConfig on AWS Amplify

I am trying to deploy a simple Nuxt application using NuxtContent in AWS Amplify, but I am struggling to make it work.

The application I am trying to run is this template as-is; https://github.com/nuxt-ui-pro/saas

The problem seems to be happening in pages that uses NuxtConfig. When navigating to them I get a CloudFront error:

HTTP/2 502 Bad Gateway
Content-Length: 0
Date: Sat, 01 Mar 2025 23:11:16 GMT
X-Amplify-Status: true
X-Cache: Error from cloudfront
Via: 1.1 daf364ea500d73463444a104a180667c.cloudfront.net (CloudFront)
X-Amz-Cf-Pop: MAD56-P3
Alt-Svc: h3=":443"; ma=86400
X-Amz-Cf-Id: 2OMdFwTScGRl9sYQVBhL6uwztK5ijAag0nkxx9z-AkCBLGkZvAMMMA==


Looking into the server side logs I see:

2025-03-02T00:51:03.376Z   [nuxt] [request error] [unhandled] [500] ENOENT: no such file or directory, open '/static/api/content/docs/database.sql/index...
2025-03-02T00:51:03.390Z   [nuxt] [request error] [unhandled] [500] ENOENT: no such file or directory, open '/static/api/content/docs/database.sql/index...
2025-03-02T00:51:03.392Z   Failed to fetch compressed dump FetchError: [GET] "/api/content/docs/database.sql?v=v3.2.0--TZcxwtJCkx": 500
(...)
2025-03-02T00:51:03.413Z   at Zlib.zlibOnError [as onerror] (node:zlib:189:17) {
2025-03-02T00:51:03.413Z     errno: -5,
2025-03-02T00:51:03.413Z     code: 'Z_BUF_ERROR'
2025-03-02T00:51:03.413Z   }
2025-03-02T00:51:03.415Z   [nuxt] [request error] [unhandled] [500] /lib64/libm.so.6: version `GLIBC_2.29' not found (required by /var/task/node_modules/better-sqlite3/build/Release/better_sqlite3.node)
[nuxt] [request error] [unhandled] [500] /lib64/libm.so.6: version `GLIBC_2.29' not found (required by /var/task/node_modules/better-sqlite3/build/Release/better_sqlite3.node)


It’s a bit frustrating 😭, because I don't see how to troubleshoot this issue. Any idea about what to try?
GitHub
A SaaS template made with Nuxt UI Pro. Contribute to nuxt-ui-pro/saas development by creating an account on GitHub.
GitHub - nuxt-ui-pro/saas: A SaaS template made with Nuxt UI Pro.
Was this page helpful?