Replies: 8 comments 17 replies
-
|
can you help me with this |
Beta Was this translation helpful? Give feedback.
-
|
Hi @racsou -- this will happen if the page takes too long to load and the serverless function times out. Can you share what URL/page you were trying to load so that we can figure out if there's a way around the timeout? |
Beta Was this translation helpful? Give feedback.
-
|
Hi! I have this problem too |
Beta Was this translation helpful? Give feedback.
-
|
If you are going to use vercel, modify in "api/index.js and add this line: export const runtime = 'edge'; // 'nodejs' is the default |
Beta Was this translation helpful? Give feedback.
-
|
This is how the entire index.js should look like: const serverlesswp = require('serverlesswp'); const { validate } = require('../util/install.js'); export const runtime = 'edge'; // 'nodejs' is the default // This is where all requests to WordPress are routed through. See vercel.json or netlify.toml for the redirection rules. } |
Beta Was this translation helpful? Give feedback.
-
|
Hi any updates on this issue? I'm also not able to run successfully. |
Beta Was this translation helpful? Give feedback.
-
|
I got this error too |
Beta Was this translation helpful? Give feedback.
-
|
Fixing the 504 Timeout Error on ServerlessWP Which situation are you in? Situation A → Your site loads, but the WordPress admin login doesn't work Situation A — Admin Login Not Working
💡 Shortcut: I've attached a ready-made SQL file with onboarding already completed. Just import it into your database, then use the steps above to create your admin user — no need to go through the full setup. Situation B — Site Not Loading At All Install LocalWP or InstaWP on your computer and complete the WordPress setup there — no timeout limits on your own machine sqlUPDATE wp_options SET option_value = 'https://your-vercel-url.vercel.app' WHERE option_name = 'siteurl'; Deploy to Vercel — it'll skip the install since the database is already set up ✅ Fix 2 — Switch to Edge Runtime in Vercel (quick code change) export const runtime = 'edge'; // 👈 Add this line exports.handler = async function (event, context, callback) { SSL Error? (Aiven / AWS RDS users) How to avoid this error entirely Always complete WordPress setup locally first, then migrate the database — this is the single most reliable approach Reply with your database provider and Vercel region if you're still stuck and I'll help narrow it down! 🙌 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This Serverless Function has timed out.
Your connection is working correctly.
Vercel is working correctly.
504: GATEWAY_TIMEOUT

Code: FUNCTION_INVOCATION_TIMEOUT
ID: cdg1::sr6rx-1695582672275-03be1404db59
Beta Was this translation helpful? Give feedback.
All reactions