@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,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
|
|