Next.js + Auth0 deployed on Digital Ocean (App Platform)

Has anyone successfully deployed a Next.js app using Auth0 on Digital Ocean App Platform?

This issue I’m receiving is the /api/auth/login route is creating a 404, yet it works perfectly on localhost. Any suggestions?

I used Auth0’s Next.js quick-start here:

And Auth0’s starter code here: auth0-nextjs-samples/Sample-01 at main · auth0-samples/auth0-nextjs-samples · GitHub

1 Like

Interesting, I built the sample react app with no error, but I am getting a route error of “Cannot GET /” on the DIgital Ocean app platform, but it does run locally on port 3000 on http with no error. It does correctly build the API server on the DO build. Apparently I need to fix the route statements.