@raystack/chronicle 0.1.0-canary.9b7d924 → 0.1.0-canary.a638730

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/cli/index.js CHANGED
@@ -253,7 +253,7 @@ async function buildVercelOutput(options) {
253
253
  await fs3.copyFile(templateSrc, path7.resolve(funcDir, "index.html"));
254
254
  await fs3.writeFile(path7.resolve(funcDir, "package.json"), JSON.stringify({ type: "module" }, null, 2));
255
255
  await fs3.writeFile(path7.resolve(funcDir, ".vc-config.json"), JSON.stringify({
256
- runtime: "nodejs24.x",
256
+ runtime: "nodejs22.x",
257
257
  handler: "entry-vercel.js",
258
258
  launcherType: "Nodejs"
259
259
  }, null, 2));
@@ -579,8 +579,7 @@ var buildCommand = new Command3("build").description("Build for production").opt
579
579
  },
580
580
  build: {
581
581
  outDir: path8.join(outDir, "server"),
582
- ssr: serverEntry,
583
- target: "node22"
582
+ ssr: serverEntry
584
583
  }
585
584
  });
586
585
  console.log(chalk6.green("Build complete →"), outDir);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raystack/chronicle",
3
- "version": "0.1.0-canary.9b7d924",
3
+ "version": "0.1.0-canary.a638730",
4
4
  "description": "Config-driven documentation framework",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -50,7 +50,6 @@ export const buildCommand = new Command('build')
50
50
  build: {
51
51
  outDir: path.join(outDir, 'server'),
52
52
  ssr: serverEntry,
53
- target: 'node22',
54
53
  },
55
54
  })
56
55
 
@@ -59,7 +59,7 @@ export async function buildVercelOutput(options: VercelAdapterOptions) {
59
59
  await fs.writeFile(
60
60
  path.resolve(funcDir, '.vc-config.json'),
61
61
  JSON.stringify({
62
- runtime: 'nodejs24.x',
62
+ runtime: 'nodejs22.x',
63
63
  handler: 'entry-vercel.js',
64
64
  launcherType: 'Nodejs',
65
65
  }, null, 2),
@@ -1,11 +1,9 @@
1
1
  // Vercel serverless function entry — built by Vite, deployed as catch-all function
2
2
  import type { IncomingMessage, ServerResponse } from 'http'
3
3
  import { readFileSync } from 'fs'
4
- import { fileURLToPath } from 'url'
5
4
  import path from 'path'
6
5
  import { handleRequest } from './request-handler'
7
6
 
8
- const __dirname = path.dirname(fileURLToPath(import.meta.url))
9
7
  const templatePath = path.resolve(__dirname, 'index.html')
10
8
  const template = readFileSync(templatePath, 'utf-8')
11
9