change pathnames and readme

This commit is contained in:
ismailsosic
2023-03-09 01:10:06 +01:00
parent 71811fac4b
commit 0a01e536e4
20 changed files with 246 additions and 14 deletions

View File

@@ -56,7 +56,7 @@ const SearchPage = ({data}) => {
export async function getServerSideProps(context) {
// Fetch data from external API
const res = await fetch(`${ENV_VAR}_search?q=${context.query.term}`)
const res = await fetch(`${ENV_VAR}/_search?q=${context.query.term}`)
const data = await res.json()
// Pass data to the page via props