vercel: Add Vercel support

This commit is contained in:
LittleChest 2025-01-30 21:20:46 +08:00
parent 185ba4ad5b
commit 9cb37b1bd9
3 changed files with 15 additions and 0 deletions

3
.gitignore vendored
View File

@ -9,3 +9,6 @@ pnpm-lock.yaml
# Yarn # Yarn
yarn.lock yarn.lock
# Vercel
.vercel

5
middleware.js Normal file
View File

@ -0,0 +1,5 @@
import handler from "./common";
export default middleware = async (request) => {
return handler(request);
};

7
vercel.json Normal file
View File

@ -0,0 +1,7 @@
{
"installCommand": "mkdir publish",
"buildCommand": "echo 1 > ./publish/index",
"outputDirectory": "publish",
"public": false,
"trailingSlash": false
}