Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic/wildcard routes in Pages static site generator? #211

Open
bgilhome opened this issue Jul 1, 2022 · 1 comment
Open

Dynamic/wildcard routes in Pages static site generator? #211

bgilhome opened this issue Jul 1, 2022 · 1 comment

Comments

@bgilhome
Copy link

bgilhome commented Jul 1, 2022

Can the Pages preset static site generator handle dynamic or wildcard routes, e.g.

{ 
  ... 
  path: '/articles/[slug]'
}

or even

{ 
  ... 
  path: '/articles/*'
}

? Where slug would then be available in the template.

Alternatively, is it possible to export an array of pages from a single .pages.jsx file?

@christianwiedemann
Copy link
Contributor

christianwiedemann commented Aug 1, 2022

Hi, right now it is not possible. Will check if it is easy to integrate it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants