convert into monorepo

This commit is contained in:
taskylizard
2024-02-24 17:20:24 +00:00
parent 5ae5b7e266
commit ef5e42c43a
33 changed files with 372 additions and 548 deletions

12
api/nitro.config.ts Normal file
View 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
View 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
View File

@@ -0,0 +1,7 @@
{
"extends": "./.nitro/types/tsconfig.json",
"compilerOptions": {
"verbatimModuleSyntax": true
},
"include": ["./.vitepress/"]
}