I’m wondering if App Platform supports Next.js redirects through next.config.js? Or if there is another way to handle SEO friendly permanent redirects through App Platform?
Code example: https://github.com/vercel/next.js/blob/canary/examples/redirects/next.config.js Next.js docs: https://nextjs.org/docs/api-reference/next.config.js/redirects
Thanks!
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!
Accepted Answer
Hey there!
We don’t currently support arbitrary redirects in App Platform unfortunately. This is something we are looking into. As a work around you could use Nginx in a Dockerfile to proxy those redirects.
A bit more info on this can be found here.
Hope it helps! Nate
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
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
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.