eddev 2.0.0-beta.214 → 2.0.0-beta.216

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.
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "2.0.0-beta.214";
1
+ export declare const VERSION = "2.0.0-beta.216";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- export const VERSION = "2.0.0-beta.214";
1
+ export const VERSION = "2.0.0-beta.216";
@@ -1 +1 @@
1
- {"version":3,"file":"dev-server.d.ts","sourceRoot":"","sources":["../../../src/node/compiler/dev-server.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAO/C,MAAM,MAAM,mBAAmB,GAAG;IAChC,aAAa,EAAE,MAAM,CAAA;IACrB,YAAY,EAAE,MAAM,CAAA;CACrB,CAAA;AAID,eAAO,MAAM,aAAa,qEAAU,CAAA;AAEpC,KAAK,OAAO,GAAG;IACb,KAAK,EAAE,OAAO,CAAA;CACf,CAAA;AAED,qBAAa,SAAS;IAOX,OAAO,EAAE,OAAO;IAChB,IAAI,EAAE,OAAO;IAPtB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,SAAO;gBAGF,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,OAAO;IAUhB,KAAK;CAwGZ"}
1
+ {"version":3,"file":"dev-server.d.ts","sourceRoot":"","sources":["../../../src/node/compiler/dev-server.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAO/C,MAAM,MAAM,mBAAmB,GAAG;IAChC,aAAa,EAAE,MAAM,CAAA;IACrB,YAAY,EAAE,MAAM,CAAA;CACrB,CAAA;AAID,eAAO,MAAM,aAAa,qEAAU,CAAA;AAEpC,KAAK,OAAO,GAAG;IACb,KAAK,EAAE,OAAO,CAAA;CACf,CAAA;AAED,qBAAa,SAAS;IAOX,OAAO,EAAE,OAAO;IAChB,IAAI,EAAE,OAAO;IAPtB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,SAAO;gBAGF,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,OAAO;IAUhB,KAAK;CAyGZ"}
@@ -72,7 +72,7 @@ export class DevServer {
72
72
  app.hooks.addHooks({
73
73
  "app:dev:start": async ({ app, serveConfig }) => {
74
74
  serveConfig.https = httpsConfig;
75
- serveConfig.hostname = this.hostname;
75
+ serveConfig.hostname = this.opts.https ? this.hostname : undefined;
76
76
  serveConfig.allowedHosts = true;
77
77
  },
78
78
  "app:dev:server:created": async (args) => {
@@ -84,7 +84,7 @@ export class DevServer {
84
84
  force: false,
85
85
  devtools: false,
86
86
  // @ts-ignore
87
- hostname: this.hostname,
87
+ hostname: this.opts.https ? this.hostname : undefined,
88
88
  port: this.port,
89
89
  // @ts-ignore
90
90
  preset: preset,
@@ -98,11 +98,12 @@ export class DevServer {
98
98
  });
99
99
  // console.log("Creating another listener")
100
100
  const listener = await devApp.listen(this.port, {
101
- hostname: this.hostname,
101
+ hostname: this.opts.https ? this.hostname : undefined,
102
102
  port: this.port,
103
103
  https: httpsConfig,
104
104
  qr: false,
105
105
  showURL: false,
106
+ public: true,
106
107
  });
107
108
  await app.hooks.callHook("app:dev:server:listener:created", {
108
109
  app,
@@ -64,10 +64,10 @@ export function createVinxiApp(args) {
64
64
  "/wp-content/**": { proxy: joinURL(args.origin, "wp-content/**") },
65
65
  "/wp-includes/**": { proxy: joinURL(args.origin, "wp-includes/**") },
66
66
  "/_data/route/**": {
67
- isr: 300,
67
+ isr: 1800,
68
68
  swr: true,
69
69
  cache: {
70
- maxAge: 300,
70
+ maxAge: 1800,
71
71
  swr: true,
72
72
  varies: ["Authorization", "woocommerce-session"],
73
73
  },
@@ -91,10 +91,10 @@ export function createVinxiApp(args) {
91
91
  };
92
92
  }, {}),
93
93
  "/**/*": {
94
- isr: 300,
94
+ isr: 1800,
95
95
  swr: true,
96
96
  cache: {
97
- maxAge: 300,
97
+ maxAge: 1800,
98
98
  swr: true,
99
99
  staleMaxAge: 3600,
100
100
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eddev",
3
- "version": "2.0.0-beta.214",
3
+ "version": "2.0.0-beta.216",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",