@edgeone/opennextjs-pages 0.0.2 → 0.0.3

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.
@@ -98,18 +98,18 @@ var getHandlerFile = async (ctx) => {
98
98
  const templateVariables = {
99
99
  "{{useRegionalBlobs}}": ctx.useRegionalBlobs.toString()
100
100
  };
101
+ let runtime_shim = "";
102
+ const getRuntimeShim = ctx.getRuntimeShim;
103
+ if (getRuntimeShim) {
104
+ runtime_shim = getRuntimeShim();
105
+ }
101
106
  if (ctx.relativeAppDir.length !== 0) {
102
107
  const template2 = await readFile(join(templatesDir, "handler-monorepo.tmpl.js"), "utf-8");
103
108
  console.log("ctx.lambdaWorkingDirectory", ctx.lambdaWorkingDirectory);
104
109
  console.log("ctx.nextServerHandler", ctx.nextServerHandler);
105
110
  templateVariables["{{cwd}}"] = posixJoin(ctx.lambdaWorkingDirectory);
106
111
  templateVariables["{{nextServerHandler}}"] = posixJoin(ctx.nextServerHandler);
107
- return applyTemplateVariables(template2, templateVariables);
108
- }
109
- let runtime_shim = "";
110
- const getRuntimeShim = ctx.getRuntimeShim;
111
- if (getRuntimeShim) {
112
- runtime_shim = getRuntimeShim();
112
+ return applyTemplateVariables(runtime_shim + template2, templateVariables);
113
113
  }
114
114
  const template = await readFile(join(templatesDir, "handler.tmpl.js"), "utf-8");
115
115
  return applyTemplateVariables(runtime_shim + template, templateVariables);
@@ -28,7 +28,7 @@ module.exports = __toCommonJS(tags_handler_exports);
28
28
 
29
29
  // package.json
30
30
  var name = "@edgeone/opennextjs-pages";
31
- var version = "0.0.2";
31
+ var version = "0.0.3";
32
32
 
33
33
  // src/run/handlers/tags-handler.cts
34
34
  var import_request_context = require("./request-context.cjs");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edgeone/opennextjs-pages",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "type": "module",