On my, what seems to be a neverending, journey to create this Astro directory listing, I was wondering the following.
I create a directory called /pages/companies/ and inside I have a [...page].astro which is my archive page where I list all companies. I'm using the getStaticPaths() function here.
Now I want to create pages for each company, so I created [slug].astro, but is it really necessary to generate the routes again with the same function? Can't it 'inherit' the routes I already set in ...page.astro?
The routes are generated based on rows in a supabase DB, so I prefer not to have to make the query twice everytime I build. (using static output)
What's an efficient solution for this?