@vercel/python 4.3.0 → 4.3.1
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/index.js +4 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3088,6 +3088,10 @@ var build = async ({
|
|
|
3088
3088
|
const files = await (0, import_build_utils3.glob)("**", globOptions);
|
|
3089
3089
|
const handlerPyFilename = "vc__handler__python";
|
|
3090
3090
|
files[`${handlerPyFilename}.py`] = new import_build_utils3.FileBlob({ data: handlerPyContents });
|
|
3091
|
+
if (config.framework === "fasthtml") {
|
|
3092
|
+
const { SESSKEY = "" } = process.env;
|
|
3093
|
+
files[".sesskey"] = new import_build_utils3.FileBlob({ data: `"${SESSKEY}"` });
|
|
3094
|
+
}
|
|
3091
3095
|
const output = new import_build_utils3.Lambda({
|
|
3092
3096
|
files,
|
|
3093
3097
|
handler: `${handlerPyFilename}.vc_handler`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/python",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.1",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/python",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"@types/jest": "27.4.1",
|
|
20
20
|
"@types/node": "14.18.33",
|
|
21
21
|
"@types/which": "3.0.0",
|
|
22
|
-
"@vercel/build-utils": "8.
|
|
22
|
+
"@vercel/build-utils": "8.3.5",
|
|
23
23
|
"execa": "^1.0.0",
|
|
24
24
|
"fs-extra": "11.1.1",
|
|
25
25
|
"jest-junit": "16.0.0",
|