@contentful/create-studio-experiences 3.8.6 → 3.8.7-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/create-studio-experiences",
3
- "version": "3.8.6",
3
+ "version": "3.8.7-beta.0",
4
4
  "description": "A CLI tool to get up and running with Contentful Studio Experiences quickly",
5
5
  "homepage": "https://github.com/contentful/experience-builder/tree/next/packages/create-studio-experiences#readme",
6
6
  "repository": {
@@ -58,5 +58,5 @@
58
58
  "open": "^10.1.0",
59
59
  "yargs": "^17.7.2"
60
60
  },
61
- "gitHead": "c1580b09511d34ae36a0217fd29dd56e26ff1759"
61
+ "gitHead": "b2ce85627ecb6030401bcaa0358b369b4694b37c"
62
62
  }
@@ -13,13 +13,13 @@ import styles from '@/app/page.module.css';
13
13
  import '../../../studio-config';
14
14
 
15
15
  type Page = {
16
- params: { locale?: string; slug?: string; preview?: string };
17
- searchParams: { [key: string]: string | string[] | undefined };
16
+ params: Promise<{ locale?: string; slug?: string; preview?: string }>;
17
+ searchParams: Promise<{ [key: string]: string | string[] | undefined }>;
18
18
  };
19
19
 
20
20
  export default async function ExperiencePage({ params, searchParams }: Page) {
21
- const { locale = 'en-US', slug = 'home-page' } = params || {};
22
- const { isPreview, expEditorMode } = searchParams;
21
+ const { locale = 'en-US', slug = 'home-page' } = (await params) || {};
22
+ const { isPreview, expEditorMode } = await searchParams;
23
23
  const preview = isPreview === 'true';
24
24
  const editorMode = expEditorMode === 'true';
25
25
  const { experience, error } = await getExperience(slug, locale, preview, editorMode);