#static page with param
15 messages · Page 1 of 1 (latest)
<@&1129102257422610512> help lol
If you want this in static, you have to have some kind of static list of search terms
Then you need a page that reads the query in JS on the client and queries your entries
In SSR you can do that easier in one step
oh
no way to have astro ignoring the page url after /q/?
The static list is like a json page
You can use fetch to load that in on your actual search page
Also you can't do /q/term, because they have to be static paths, but you can do /q?query=term
You can do that on your deployment. That is outside the scope of Astro.
Astro will generate one page, you can have something like NGINX serve anything starting with /q/ as the same page (look for how to configure an SPA) and then you can make the search on the client side using JS or some UI framework
Also possible, but the nginx rewriting might be more difficult to figure out, unless it's vital your links must look like that
Otherwise I'd opt for the simpler solution of using the url query
oh true
thought about this when i was eating
imma do this c: