Commit ec658a4
authored
fix(live-preview): remove payload import (#15160)
Fixes #15024.
The `@payloadcms/live-preview` package was importing from
`payload/shared`, which is not a dependency of this module. This causes
installations that are not running a payload as a peer dependency to
crash, e.g. Svelte frontends, etc.
The use of `formatAdminURL` doesn't really make sense here anyway as it
relies on Next.js' base path. The SDK is designed to be front-end
agnostic. If needed, the user should just include it in the `serverURL`
they provide.1 parent 9d54267 commit ec658a4
1 file changed
+7
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
0 commit comments