Skip to content

Commit

Permalink
Merge branch 'vercel-cache' of https://github.com/gustavomm19/app int…
Browse files Browse the repository at this point in the history
…o vercel-cache
  • Loading branch information
gustavomm19 committed Oct 10, 2023
2 parents 62962cb + 05c6432 commit 688a8ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/interactive-coding-tutorial/[slug].jsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const getStaticProps = async ({ params, locale, locales }) => {
result = await getCacheItem(slug);

if (!result) {
const response = await fetch(`${process.env.BREATHECODE_HOST}/v1/registry/asset/${slug}?asset_type=project`);
const response = await fetch(`${process.env.BREATHECODE_HOST}/v1/registry/asset/${slug}?asset_type=PROJECT`);
result = await response.json();
const engPrefix = {
us: 'en',
Expand Down
2 changes: 1 addition & 1 deletion src/pages/interactive-exercise/[slug]/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const getStaticProps = async ({ params, locale, locales }) => {
result = await getCacheItem(slug);

if (!result) {
const resp = await fetch(`${process.env.BREATHECODE_HOST}/v1/registry/asset/${slug}?asset_type=exercise`);
const resp = await fetch(`${process.env.BREATHECODE_HOST}/v1/registry/asset/${slug}?asset_type=EXERCISE`);
result = await resp.json();
const engPrefix = {
us: 'en',
Expand Down

0 comments on commit 688a8ea

Please sign in to comment.