Skip to content

Commit

Permalink
Temp Urls for Layouts and Blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Gunka Artur committed Dec 13, 2024
1 parent 684ec5d commit 17f58fc
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions public/editor-client/src/defaultTemplates/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ const defaultKits = (
return {
async getMeta(res, rej, kit) {
try {
const data = await getDefaultKits(blocksChunkUrl, kit.id);
console.log("TEMPORARY URL, SHOULD BE STANDARD = ", blocksChunkUrl);
const data = await getDefaultKits(
"https://phplaravel-1109775-4184176.cloudwaysapps.com/api/get-kit-collections-chunk",
kit.id
);

const { types, blocks } = converterKit(
data.blocks,
Expand Down Expand Up @@ -193,9 +197,13 @@ const defaultLayouts = (
return {
async getMeta(res, rej) {
try {
const { templates, categories } = await getDefaultLayouts(
console.log(
"TEMPORARY URL, SHOULD BE STANDARD = ",
layoutsChunkUrl
);
const { templates, categories } = await getDefaultLayouts(
"https://phplaravel-1109775-4184176.cloudwaysapps.com/api/get-layouts-chunk"
);

const data: LayoutsWithThumbs = {
templates: convertLayouts(templates, templatesImageUrl),
Expand Down

0 comments on commit 17f58fc

Please sign in to comment.