내용으로 건너뛰기

Next.js site will not allow routing in Amplify despite published answers

0

Subject says it all. I have a next.js site in Amplify.

The site is using a route53 domain.

Every time I try to reach one of its pages im redirected to /

Every solution I find online is the same - follow these steps:

https://docs.aws.amazon.com/amplify/latest/userguide/redirects.html#redirects-for-single-page-web-apps-spa\

Implementing the redirects below makes it so that pages just dont redirect and instead show 404 not found pages when I try.

HeadHeadHead
/<*>/index.html404 (Rewrite)
regex not showing on forum, using SPA regex from AWS link above/index.html200 (Rewrite)

Implementing the redirect below makes it so that all pages, including / show 404 not found.

HeadHeadHead
regex not showing on forum, usingSPA regex from AWS link above/index.html200 (Rewrite)

Removing all redirects completely results in everything routing to / again.

What do I need to do here?

Thank you for any assistance...

질문됨 3년 전1.2천회 조회
1개 답변
0

Please disregard, it looks like its mostly all working right in some fashion, I have one page I was checking that must have its own issues to resolve, other pages are redirecting just fine.

답변함 3년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

관련 콘텐츠