@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.es.js CHANGED
@@ -1202,7 +1202,7 @@ async function fonts(_req, res, { getFonts } = {}) {
1202
1202
  const fonts2 = (_a = await (getFonts == null ? void 0 : getFonts())) != null ? _a : [];
1203
1203
  return res.json(fonts2);
1204
1204
  }
1205
- const version = "0.10.8";
1205
+ const version = "0.10.9";
1206
1206
  async function handler(req, res, { apiKey, unstable_siteVersions }) {
1207
1207
  if (req.query.secret !== apiKey) {
1208
1208
  return res.status(401).json({ message: "Unauthorized" });
@@ -1220,7 +1220,7 @@ async function handler(req, res, { apiKey, unstable_siteVersions }) {
1220
1220
  }
1221
1221
  async function proxyPreviewMode(req, res, { apiKey }) {
1222
1222
  const previewModeProxy = createProxyServer();
1223
- const NextRequestMetaSymbol = Reflect.ownKeys(req).find((key) => key.toString() === "Symbol(NextRequestMeta)");
1223
+ const NextRequestMetaSymbol = Reflect.ownKeys(req).find((key) => key.toString() === "Symbol(NextRequestMeta)" || key.toString() === "Symbol(NextInternalRequestMeta)");
1224
1224
  if (NextRequestMetaSymbol) {
1225
1225
  const nextRequestMeta = req[NextRequestMetaSymbol];
1226
1226
  const initUrl = nextRequestMeta == null ? void 0 : nextRequestMeta.__NEXT_INIT_URL;