NuxtJS dynamic URLs for static site

Viewed 825

How can I allow for dynamic URLs on a static Nuxt.js application? I have some dynamic routes like this.

/user/_user
/order-confirmation/_key
/some-route/_key/with/additional/_slug

I generate most of the routes on build time, but some IDs will exist after creating the app. I believe I could use .htaccess somehow to allow for this, but so far, I haven't been able to get it working. I have tried with this: nuxtjs cannot display dynamic url on production - but that doesn't seem to work either.

I can't believe there isn't more information on this, must be a pretty regular usecase.

0 Answers
Related