Question

HTTP/2 Not Working on App Platform – 504 Error

I tried to enable HTTP/2 for my Next.js project, but got a 504 error after redeploying. Initially, I thought the issue was related to my codebase or project setup, but then I discovered that HTTP/2 doesn’t seem to work on the App Platform at all.

Steps to reproduce:

  1. Start creating a new app on App Platform and choose “Sample app”
  2. Select any language or web framework (I tested with Node.js and Go sample apps)
  3. Choose a server size and deploy the app
  4. Open the deployed app to confirm it’s working
  5. Enable HTTP/2 support in the App Spec and wait for the redeployment
  6. Open the app again — you’ll get a 504 Gateway Timeout error

Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

alexdo
Site Moderator
Site Moderator badge
April 16, 2025

Heya, @littleaquamarineangler

Have you checked our article on how to configyre http2 here:

https://docs.digitalocean.com/products/app-platform/how-to/configure-http2/

Regards

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.