eddev 0.2.64 → 0.2.66

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.
@@ -147,7 +147,7 @@ function createNextApp(opts) {
147
147
  return [4 /*yield*/, syncAPIProxies((0, path_1.join)(opts.baseDirectory, "apis"), (0, path_1.join)(serverlessDirectory, "pages/api"))];
148
148
  case 10:
149
149
  _b.sent();
150
- return [4 /*yield*/, syncAPIProxies((0, path_1.join)(opts.baseDirectory, "routes"), (0, path_1.join)(serverlessDirectory, "pages"))
150
+ return [4 /*yield*/, syncFiles((0, path_1.join)(opts.baseDirectory, "routes"), (0, path_1.join)(serverlessDirectory, "pages"), ["**/*.{tsx,ts,js,jsx}"])
151
151
  // Sync the public folder
152
152
  ];
153
153
  case 11:
@@ -176,7 +176,7 @@ function createNextApp(opts) {
176
176
  case 18:
177
177
  // Sync favicon
178
178
  _b.sent();
179
- return [4 /*yield*/, copyFiles((0, path_1.join)(opts.baseDirectory, "routes"), (0, path_1.join)(serverlessDirectory, "pages/"), ["*"])
179
+ return [4 /*yield*/, copyFiles((0, path_1.join)(opts.baseDirectory, "routes"), (0, path_1.join)(serverlessDirectory, "pages/"), ["**/*"])
180
180
  // Write APIs proxy code
181
181
  ];
182
182
  case 19:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eddev",
3
- "version": "0.2.64",
3
+ "version": "0.2.66",
4
4
  "main": "./index.js",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -8,7 +8,6 @@ export async function fetchWordpressProps(pathname: string) {
8
8
  const origin = (process.env.SITE_URL as string).replace(/\/$/, "")
9
9
  pathname = pathname.replace(/(^\/|\/$)/g, "")
10
10
  const propsURL = origin + ("/" + pathname + "/?_props=all").replace(/\/+/, "/")
11
- console.log("Fetching from", propsURL)
12
11
 
13
12
  // Make the request
14
13
  let response = await fetchWP(propsURL, {}, async (response) => ({
@@ -46,9 +45,6 @@ export async function fetchWordpressProps(pathname: string) {
46
45
  return url
47
46
  })
48
47
 
49
- console.log("Output")
50
- console.log(text)
51
-
52
48
  const payload = JSON.parse(text)
53
49
 
54
50
  if (payload.redirect) {
@@ -24,7 +24,6 @@ export async function fetchWP<T>(url: string, opts: RequestInit, handler: (respo
24
24
  const response = await getData()
25
25
  const cacheDuration = parseInt(response.headers.get("x-ed-cache-duration") || "") || 0
26
26
  setExpiry(cacheDuration)
27
- console.log(`CACHE for ${cacheDuration}: ${url}`)
28
27
  const result = await handler(response)
29
28
  return result
30
29
  })