convert into monorepo
This commit is contained in:
12
api/nitro.config.ts
Normal file
12
api/nitro.config.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
//https://nitro.unjs.io/config
|
||||
export default defineNitroConfig({
|
||||
runtimeConfig: {
|
||||
WEBHOOK_URL: process.env.WEBHOOK_URL
|
||||
},
|
||||
srcDir: '.vitepress',
|
||||
routeRules: {
|
||||
'/': {
|
||||
cors: false
|
||||
}
|
||||
}
|
||||
})
|
||||
19
api/package.json
Normal file
19
api/package.json
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"name": "@fmhy/api",
|
||||
"version": "1.0.0",
|
||||
"description": "FMHY API.",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"prepare": "nitropack prepare",
|
||||
"dev": "nitropack dev",
|
||||
"build": "nitropack build",
|
||||
"preview": "node .output/server/index.mjs",
|
||||
"postinstall": "nitropack prepare"
|
||||
},
|
||||
"dependencies": {
|
||||
"itty-fetcher": "^0.9.4",
|
||||
"nitro-cors": "^0.7.0",
|
||||
"nitropack": "latest"
|
||||
},
|
||||
"author": "taskylizard <taskylizard@fmhy.net>"
|
||||
}
|
||||
7
api/tsconfig.json
Normal file
7
api/tsconfig.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"extends": "./.nitro/types/tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"verbatimModuleSyntax": true
|
||||
},
|
||||
"include": ["./.vitepress/"]
|
||||
}
|
||||
Reference in New Issue
Block a user