スキップしてコンテンツを表示

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年前1178ビュー
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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

関連するコンテンツ