DEV Community

loading...

Discussion on: ⚡️ 5 Minute Tutorial: Deploying a NextJS app with AWS Amplify Hosting

Collapse
chrisrbailey profile image
Chris Bailey

Nader, thanks for this. I'm struggling with dynamic routes for a Nuxt app. I'm wondering if you've seen how to do this for that case? I believe that the main problem is that Nuxt doesn't generate a page during the generate/build stage that I can redirect to. I have their regular dynamic routes setup and working locally (and it works when I do a push in my Nuxt app - just not if I try to directly navigate to a dynamic page, as if I'd bookmarked it for example). If you know of any solutions for Nuxt, I'd love to know.

Collapse
chrisrbailey profile image
Chris Bailey

I figured out a workaround. If I add a trailing slash it works. So, using URL's like, "somepath/somepage/?param1=foo" (instead of the usual somepath/somepage?param1=foo) works.

Collapse
dabit3 profile image
Nader Dabit Author

Hey Chris, thanks for the follow up here, I had yet to try this but will now be trying more with Nuxt so this helps.