From 370c2c87c6d8821e6041e5ad7e9a3d3d7f6490f5 Mon Sep 17 00:00:00 2001 From: Kaustubh Kumar Date: Mon, 31 Jul 2023 12:40:38 +0530 Subject: [PATCH] Nextjs: App router support for HMSPrebuilt (#1690) context for app router --- docs/javascript/v2/quickstart/prebuilt-quickstart.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/javascript/v2/quickstart/prebuilt-quickstart.mdx b/docs/javascript/v2/quickstart/prebuilt-quickstart.mdx index 03ad374e51..96f94339e7 100644 --- a/docs/javascript/v2/quickstart/prebuilt-quickstart.mdx +++ b/docs/javascript/v2/quickstart/prebuilt-quickstart.mdx @@ -79,7 +79,7 @@ export default App; -For Next.js, you can add the Prebuilt component to your `pages/index.js` file: +For Next.js, you can add the Prebuilt component to your `pages/index.js` file. If you have opted for app router during initialization, you can add the snippet in the `app/page.js` file. Depending on the initialization configuration, the files can be in typescript. The `src` directory is also optional and only affects the file paths: ```jsx title="pages/index.js" "use client";