mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 15:51:01 +08:00
Add Nitro OpenApi Intergration && Update README
This commit is contained in:
parent
3019c06ec1
commit
aea658a4cb
10
README.md
10
README.md
@ -4,7 +4,7 @@
|
||||
|
||||
App Design: [PDF Document](/design.pdf)
|
||||
|
||||
Reverse engineering documentataion: [about](/about/)
|
||||
Reverse engineering documentation: [about](/about/)
|
||||
|
||||
## Before deploying, please know this:
|
||||
This code is absolutly NOT designed to be spinned up at Vercel or Netlify, it has the scraping system now inside of the main website code, oh also the entire "caching feature" is based in memory, so please don't use those platforms, for Zeabur your cost might be expensive. idk, I haven't tried it yet. The web url: https://news.yuanhau.com is hosted on my own infra, you should too. Please get a server off of yahoo 拍賣 or 蝦皮 to do so.
|
||||
@ -53,6 +53,7 @@ This code is absolutly NOT designed to be spinned up at Vercel or Netlify, it ha
|
||||
- Custom Infra
|
||||
- Docker
|
||||
- Docker Compose
|
||||
- GitHub Actions
|
||||
|
||||
## 如何執行
|
||||
|
||||
@ -63,8 +64,9 @@ This code is absolutly NOT designed to be spinned up at Vercel or Netlify, it ha
|
||||
5. Run `bun run preview` to start the preview server.
|
||||
6. Open `http://localhost:3000` in your browser.
|
||||
|
||||
### For scaping
|
||||
Scraping is embeded to the web app, please use the web app.
|
||||
|
||||
## 有問題? Got questions?
|
||||
Use GitHub Issues
|
||||
|
||||
------ or ------
|
||||
|
||||
Use this form: https://yhw.tw/SaBta
|
||||
|
@ -25,15 +25,7 @@ export default defineNuxtConfig({
|
||||
|
||||
css: ["~/styles/main.css"],
|
||||
|
||||
modules: [
|
||||
"@nuxtjs/robots",
|
||||
"@nuxtjs/seo",
|
||||
"@nuxtjs/i18n",
|
||||
"@nuxtjs/tailwindcss",
|
||||
"shadcn-nuxt",
|
||||
"motion-v/nuxt",
|
||||
"@sentry/nuxt/module",
|
||||
],
|
||||
modules: ["@nuxtjs/robots", "@nuxtjs/seo", "@nuxtjs/i18n", "@nuxtjs/tailwindcss", "shadcn-nuxt", "motion-v/nuxt", "@sentry/nuxt/module"],
|
||||
|
||||
i18n: {
|
||||
defaultLocale: "en",
|
||||
@ -136,8 +128,22 @@ export default defineNuxtConfig({
|
||||
|
||||
nitro: {
|
||||
preset: "bun", // This is dumb.
|
||||
experimental: {
|
||||
openAPI: true,
|
||||
},
|
||||
},
|
||||
|
||||
/* scalar: {
|
||||
darkMode: true,
|
||||
hideModels: false,
|
||||
hideDownloadButton: false,
|
||||
metaData: {
|
||||
title: 'API Documentation by Scalar',
|
||||
},
|
||||
showSidebar: true,
|
||||
pathRouting: {
|
||||
basePath: '/scalar',
|
||||
},
|
||||
},*/
|
||||
sentry: {
|
||||
sourceMapsUploadOptions: {
|
||||
org: "hwtwcc",
|
||||
@ -148,4 +154,4 @@ export default defineNuxtConfig({
|
||||
sourcemap: {
|
||||
client: "hidden",
|
||||
},
|
||||
});
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user