resolve conflicts and add readme and correct pathnames

This commit is contained in:
ismailsosic
2023-03-09 18:16:23 +01:00
parent 38ce721f52
commit b6ef397899
31 changed files with 50 additions and 27 deletions

View File

@@ -57,7 +57,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