Skip to content

Commit b403667

Browse files
committed
fix: minor umami compatibility updates
1 parent 20a38be commit b403667

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

examples/example-umami/components/formatted-text.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { HTMLReactParserOptions, domToReact } from "html-react-parser"
2-
import { Element } from "domhandler/lib/node"
2+
import { Element } from "domhandler"
33
import parse from "html-react-parser"
44
import Image from "next/image"
55
import Link from "next/link"
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
import { DrupalClient } from "next-drupal"
22

3-
export const drupal = new DrupalClient(process.env.NEXT_PUBLIC_DRUPAL_BASE_URL)
3+
export const drupal = new DrupalClient(
4+
process.env.NEXT_PUBLIC_DRUPAL_BASE_URL,
5+
{ useDefaultEndpoints: true }
6+
)

examples/example-umami/next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/// <reference types="next/image-types/global" />
33

44
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/basic-features/typescript for more information.
5+
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.

0 commit comments

Comments
 (0)