create-puck-app 0.21.0-canary.b6ed9789 → 0.21.0-canary.b818cb1f

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": "create-puck-app",
3
- "version": "0.21.0-canary.b6ed9789",
3
+ "version": "0.21.0-canary.b818cb1f",
4
4
  "author": "Chris Villa <chris@puckeditor.com>",
5
5
  "repository": "measuredco/puck",
6
6
  "bugs": "https://github.com/measuredco/puck/issues",
@@ -3,7 +3,7 @@ import { NextResponse } from "next/server";
3
3
  import type { NextRequest } from "next/server";
4
4
 
5
5
  export async function middleware(req: NextRequest) {
6
- const res = NextResponse.next();
6
+ const res = NextResponse.next({ request: req });
7
7
 
8
8
  if (req.method === "GET") {
9
9
  // Rewrite routes that match "/[...puckPath]/edit" to "/puck/[...puckPath]"
@@ -21,7 +21,7 @@ export async function loader() {
21
21
  export function meta({ data: loaderData }: Route.MetaArgs) {
22
22
  return [
23
23
  {
24
- title: loaderData.data.root.title,
24
+ title: loaderData.data.root.props?.title ?? "",
25
25
  },
26
26
  ];
27
27
  }
@@ -42,7 +42,7 @@ export function meta({ data: loaderData }: Route.MetaArgs) {
42
42
  {
43
43
  title: loaderData.isEditorRoute
44
44
  ? `Edit: ${loaderData.path}`
45
- : loaderData.data.root.title,
45
+ : loaderData.data.root.props?.title ?? "",
46
46
  },
47
47
  ];
48
48
  }