Skip to content

Commit

Permalink
hotfix: entry url and prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
codespool committed Jan 2, 2024
1 parent 959a5a7 commit f0b91ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/helpers/strapiLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ export async function strapiLoader<ResponseType>(endpoint: string, qs?: string)
const rawResponse = await fetch(url, {
// headers: { Authorization: `Bearer ${process.env.STRAPI_TOKEN}` },
});
const response = (await rawResponse.json() as ResponseType);
const response = (await rawResponse.json()) as ResponseType;

return {
apiData: response,
imageUrlPrefix: process.env.STRAPI_HOSTED_IMAGES ? baseUrl : null,
imageUrlPrefix: process.env.STRAPI_HOSTED_IMAGES ? baseUrl : "",
};
}
}
2 changes: 1 addition & 1 deletion app/routes/_index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default function Index() {
<img src={fullLogoUrl} alt="Logo" />
</div>
<Link
to="/floors/town"
to="/floors/countryside"
className="bg-blue-700 bg-opacity-100 text-white text-4xl font-bold uppercase px-28 py-4 rounded-md mt-12 hover:bg-blue-500 transition-colors duration-300"
>
Enter
Expand Down

0 comments on commit f0b91ec

Please sign in to comment.