resolve conflicts and add readme and correct pathnames
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user