@codedesignai/nextjs-live-edit-plugin 1.0.6 → 1.0.7
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/index.js +5 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -44,8 +44,13 @@ function withLiveEdit(nextConfig = {}, pluginOptions = {}) {
|
|
|
44
44
|
const existingTurbopack = nextConfig.turbopack || {};
|
|
45
45
|
const existingRules = existingTurbopack.rules || {};
|
|
46
46
|
|
|
47
|
+
// Merge allowedDevOrigins — sandbox domains need cross-origin HMR access
|
|
48
|
+
// for React hydration to complete (which <Script strategy="afterInteractive"> depends on)
|
|
49
|
+
const existingOrigins = nextConfig.allowedDevOrigins || [];
|
|
50
|
+
|
|
47
51
|
return {
|
|
48
52
|
...nextConfig,
|
|
53
|
+
allowedDevOrigins: [...existingOrigins, '.miraqal.com'],
|
|
49
54
|
turbopack: {
|
|
50
55
|
...existingTurbopack,
|
|
51
56
|
rules: {
|