-
I have a component that is the default layout for all pages in my application. I want this component to read a particular directory and link existing files within the component. To be very clear, I am generating pages dynamically with the files available in the directory. Now the problem is, this component of mine is not inside of
So, I can't actually do this what I wrote above. What should I do on this situation? The problem only arise when I am creating Links like above in the component, because it is outside the Please advise, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Here's what I did to solve the problem. I generated a Thanks to this answer on StackOverflow, I partially followed it. |
Beta Was this translation helpful? Give feedback.
Here's what I did to solve the problem. I generated a
.json
file with the pages yaml data and imported here in this component. All I needed just to do this, because page generation works anyway as it is done from the/pages
dir.Thanks to this answer on StackOverflow, I partially followed it.