@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.
Files changed (2) hide show
  1. package/index.js +5 -0
  2. 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: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codedesignai/nextjs-live-edit-plugin",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Next.js plugin for live editing React components with AST-powered source mapping",
5
5
  "main": "index.js",
6
6
  "exports": {