Skip to content

Commit ce4d052

Browse files
authored
Prevent creating the wrong file extension (#72)
1 parent 9525dc3 commit ce4d052

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/nextjs/docs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,10 @@ LOCATION: in the root of the application or inside an src folder.
251251
==============================
252252
Changes:
253253
- Create or update the instrumentation-client.${
254-
language === 'typescript' ? 'tsx' : 'jsx'
254+
language === 'typescript' ? 'ts' : 'js'
255255
} file to use the PostHog client. If the file does not exist yet, create it.
256256
- Do *not* import instrumentation-client.${
257-
language === 'typescript' ? 'tsx' : 'jsx'
257+
language === 'typescript' ? 'ts' : 'js'
258258
} in any other file; Next.js will automatically handle it.
259259
- Do not modify any other pages/components in the Next.js application; the PostHog client will be automatically initialized and handle all pageview tasks on its own.
260260

0 commit comments

Comments
 (0)