eddev 2.0.0-beta.156 → 2.0.0-beta.158

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.
@@ -200,16 +200,17 @@ export class ServerContext {
200
200
  let resultHeaders = new Headers(result.headers);
201
201
  let resultData = {};
202
202
  // Special case for redirects
203
- if (result.headers.get("location")) {
203
+ if (result.headers.has("location")) {
204
204
  let location = result.headers.get("location");
205
205
  let status = result.status;
206
206
  if (this.replaceUrls) {
207
207
  location = this.replaceUrls(location);
208
208
  }
209
- resultHeaders.delete("location");
210
209
  return {
211
210
  status: 200,
212
- headers: resultHeaders,
211
+ headers: new Headers({
212
+ "Content-Type": "application/json",
213
+ }),
213
214
  data: JSON.stringify({ redirect: location, status: status }),
214
215
  };
215
216
  }
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "2.0.0-beta.156";
1
+ export declare const VERSION = "2.0.0-beta.158";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- export const VERSION = "2.0.0-beta.156";
1
+ export const VERSION = "2.0.0-beta.158";
@@ -27,8 +27,8 @@ export function createVinxiCodegen(opts) {
27
27
  from: project.origin,
28
28
  to: opts.endpoint ?? "",
29
29
  prefixes: [
30
- { prefix: "/wp-content/uploads", replace: project.config?.serverless.uploads === "proxy" },
31
- { prefix: "/wp-content/plugins", replace: project.config?.serverless.plugins === "proxy" },
30
+ { prefix: "/wp-content/uploads", replace: project.config?.serverless.uploads === "remote" },
31
+ { prefix: "/wp-content/plugins", replace: project.config?.serverless.plugins === "remote" },
32
32
  ],
33
33
  },
34
34
  rpcBases: (await project.serverRoutes.get()).bases ?? [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eddev",
3
- "version": "2.0.0-beta.156",
3
+ "version": "2.0.0-beta.158",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",