From 4a41426dcd0cb4747d27de0b5b17be3e2af47cea Mon Sep 17 00:00:00 2001 From: martin-mfg <2026226+martin-mfg@users.noreply.github.com> Date: Sun, 22 Jun 2025 09:52:53 +0000 Subject: [PATCH] try prerender function --- .gitignore | 5 ++--- .vercel/output/functions/api.func/.vc-config.json | 4 ++++ .vercel/output/functions/api.func/index.js | 3 +++ .vercel/output/functions/api.prerender-config.json | 3 +++ 4 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 .vercel/output/functions/api.func/.vc-config.json create mode 100644 .vercel/output/functions/api.func/index.js create mode 100644 .vercel/output/functions/api.prerender-config.json diff --git a/.gitignore b/.gitignore index b1d9a017..64da3cbc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ -.vercel +.vercel/project.json +.vercel/README.txt .env node_modules *.lock @@ -12,5 +13,3 @@ vercel_token !.vscode/extensions.json !.vscode/settings.json *.code-workspace - -.vercel diff --git a/.vercel/output/functions/api.func/.vc-config.json b/.vercel/output/functions/api.func/.vc-config.json new file mode 100644 index 00000000..7363da92 --- /dev/null +++ b/.vercel/output/functions/api.func/.vc-config.json @@ -0,0 +1,4 @@ +{ + "runtime": "nodejs20.x", + "handler": "index.js" +} \ No newline at end of file diff --git a/.vercel/output/functions/api.func/index.js b/.vercel/output/functions/api.func/index.js new file mode 100644 index 00000000..266beea1 --- /dev/null +++ b/.vercel/output/functions/api.func/index.js @@ -0,0 +1,3 @@ +export default async (req, res) => { + return res.send("hello world"); +}; \ No newline at end of file diff --git a/.vercel/output/functions/api.prerender-config.json b/.vercel/output/functions/api.prerender-config.json new file mode 100644 index 00000000..b1d99442 --- /dev/null +++ b/.vercel/output/functions/api.prerender-config.json @@ -0,0 +1,3 @@ +{ + "expiration": 5 +} \ No newline at end of file