Skip to content

Commit

Permalink
upd lang
Browse files Browse the repository at this point in the history
  • Loading branch information
Smilefounder committed Aug 17, 2023
1 parent 0a982d2 commit f4aba7a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/web/src/routes/(client)/[[lang]]/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ export const load: PageServerLoad = async ({ params }) => {
// };
// }

const request = await fetch(`${env.MIXCORE_API_URL}/api/v2/rest/common/post-content`);
const culture = params.lang == '' ? '' : `culture=${params.lang}`;

const request = await fetch(`${env.MIXCORE_API_URL}/api/v2/rest/common/post-content?${culture}`);
const response = await request.json();

// console.log(response);
Expand Down

1 comment on commit f4aba7a

@vercel
Copy link

@vercel vercel bot commented on f4aba7a Aug 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

mixcore-superapp – ./apps/web

mixcore-superapp-mixcore.vercel.app
mix-core-spa-web.vercel.app
mixcore.dev
mixcore-superapp-git-main-mixcore.vercel.app

Please sign in to comment.