@prismicio/next 0.0.1 → 0.0.2

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/dist/index.cjs CHANGED
@@ -101,6 +101,7 @@ async function redirectToPreviewURL({
101
101
  previewToken: token
102
102
  });
103
103
  res.redirect(previewUrl);
104
+ return;
104
105
  }
105
106
  res.redirect(defaultURL);
106
107
  }
package/dist/index.mjs CHANGED
@@ -93,6 +93,7 @@ async function redirectToPreviewURL({
93
93
  previewToken: token
94
94
  });
95
95
  res.redirect(previewUrl);
96
+ return;
96
97
  }
97
98
  res.redirect(defaultURL);
98
99
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prismicio/next",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "Integrate Prismic into a Next.js app",
5
5
  "keywords": [
6
6
  "typescript",
@@ -40,6 +40,8 @@ export async function redirectToPreviewURL({
40
40
  });
41
41
 
42
42
  res.redirect(previewUrl);
43
+
44
+ return;
43
45
  }
44
46
 
45
47
  res.redirect(defaultURL);