mirror of
https://github.com/LittleChest/Dohna-NS.git
synced 2026-05-06 22:44:50 +08:00
vercel: Add Vercel support
This commit is contained in:
parent
185ba4ad5b
commit
9cb37b1bd9
3
.gitignore
vendored
3
.gitignore
vendored
@ -9,3 +9,6 @@ pnpm-lock.yaml
|
|||||||
|
|
||||||
# Yarn
|
# Yarn
|
||||||
yarn.lock
|
yarn.lock
|
||||||
|
|
||||||
|
# Vercel
|
||||||
|
.vercel
|
||||||
|
|||||||
5
middleware.js
Normal file
5
middleware.js
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import handler from "./common";
|
||||||
|
|
||||||
|
export default middleware = async (request) => {
|
||||||
|
return handler(request);
|
||||||
|
};
|
||||||
7
vercel.json
Normal file
7
vercel.json
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"installCommand": "mkdir publish",
|
||||||
|
"buildCommand": "echo 1 > ./publish/index",
|
||||||
|
"outputDirectory": "publish",
|
||||||
|
"public": false,
|
||||||
|
"trailingSlash": false
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user