Skip to content

Commit d6f6b05

Browse files
authored
fix(examples): update live-preview example to ESM (#12570)
Partial fix for #12551. The Live Preview example was unable to boot because it was running CommonJS instead of ESM.
1 parent feb7e08 commit d6f6b05

File tree

5 files changed

+1998
-1348
lines changed

5 files changed

+1998
-1348
lines changed

examples/live-preview/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/app/building-your-application/configuring/typescript for more information.
5+
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

examples/live-preview/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "1.0.0",
44
"description": "Payload Live Preview example.",
55
"license": "MIT",
6+
"type": "module",
67
"main": "dist/server.js",
78
"scripts": {
89
"build": "cross-env NODE_OPTIONS=--no-deprecation next build",

0 commit comments

Comments
 (0)