@makeswift/runtime 0.10.8 → 0.10.9

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.js CHANGED
@@ -1235,7 +1235,7 @@ async function fonts(_req, res, { getFonts } = {}) {
1235
1235
  const fonts2 = (_a = await (getFonts == null ? void 0 : getFonts())) != null ? _a : [];
1236
1236
  return res.json(fonts2);
1237
1237
  }
1238
- const version = "0.10.8";
1238
+ const version = "0.10.9";
1239
1239
  async function handler(req, res, { apiKey, unstable_siteVersions }) {
1240
1240
  if (req.query.secret !== apiKey) {
1241
1241
  return res.status(401).json({ message: "Unauthorized" });
@@ -1253,7 +1253,7 @@ async function handler(req, res, { apiKey, unstable_siteVersions }) {
1253
1253
  }
1254
1254
  async function proxyPreviewMode(req, res, { apiKey }) {
1255
1255
  const previewModeProxy = httpProxy.createProxyServer();
1256
- const NextRequestMetaSymbol = Reflect.ownKeys(req).find((key) => key.toString() === "Symbol(NextRequestMeta)");
1256
+ const NextRequestMetaSymbol = Reflect.ownKeys(req).find((key) => key.toString() === "Symbol(NextRequestMeta)" || key.toString() === "Symbol(NextInternalRequestMeta)");
1257
1257
  if (NextRequestMetaSymbol) {
1258
1258
  const nextRequestMeta = req[NextRequestMetaSymbol];
1259
1259
  const initUrl = nextRequestMeta == null ? void 0 : nextRequestMeta.__NEXT_INIT_URL;