@raystack/chronicle 0.1.0-canary.729744c → 0.1.0-canary.9b7d924

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
@@ -579,7 +579,8 @@ 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
582
+ ssr: serverEntry,
583
+ target: "node22"
583
584
  }
584
585
  });
585
586
  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.729744c",
3
+ "version": "0.1.0-canary.9b7d924",
4
4
  "description": "Config-driven documentation framework",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -50,6 +50,7 @@ export const buildCommand = new Command('build')
50
50
  build: {
51
51
  outDir: path.join(outDir, 'server'),
52
52
  ssr: serverEntry,
53
+ target: 'node22',
53
54
  },
54
55
  })
55
56
 
@@ -1,9 +1,11 @@
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'
4
5
  import path from 'path'
5
6
  import { handleRequest } from './request-handler'
6
7
 
8
+ const __dirname = path.dirname(fileURLToPath(import.meta.url))
7
9
  const templatePath = path.resolve(__dirname, 'index.html')
8
10
  const template = readFileSync(templatePath, 'utf-8')
9
11