Rewrite from a Netlify site to a NextJS site

Problem

When trying to rewrite from a Netlify site to another Netlify site powered by NextJS, resources fail to load in with a 404, due to _next/static being searched for at the root.

Other Details

I have many NextJS projects I’d like to link under the main domain, so the subdomain /wrapbattle/ must stay, and I’d like to be able to create others e.g. /next-app-1 and /next-app-2, etc

_redirects

/wrapbattle/* https://trusting-feynman-221b13.netlify.app 200!

Screen Shot 2022-02-28 at 9.43.21 PM

Thanks!

hi there, before we dig in, did you see this brand new guide on debugging redirects?

I strongly suggest you give it a thorough read through and see if this fixes your problem:

if not, please post again, and we’ll try and troubleshoot.

Hello there, I have the same issue. Did you find the solution? @bramses

Hi @mrcportillo,

Please share your site’s URL, so we can check.

Nevermind, found your post here: