mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-01 01:28:08 +08:00
chore: rename now to vercel (#9791)
This commit is contained in:
@@ -1,32 +1,31 @@
|
|||||||
node_modules
|
|
||||||
npm-debug.log
|
|
||||||
Dockerfile*
|
|
||||||
docker-compose*
|
|
||||||
.dockerignore
|
|
||||||
.gitignore
|
|
||||||
LICENSE
|
|
||||||
.vscode
|
|
||||||
.github
|
.github
|
||||||
|
.idea
|
||||||
|
.vscode
|
||||||
|
Dockerfile*
|
||||||
|
LICENSE
|
||||||
|
Procfile
|
||||||
|
app-minimal
|
||||||
assets
|
assets
|
||||||
coverage
|
coverage
|
||||||
docs
|
docs
|
||||||
|
node_modules
|
||||||
test
|
test
|
||||||
.codecov.yml
|
.codecov.yml
|
||||||
|
.dockerignore
|
||||||
|
.editorconfig
|
||||||
|
.env
|
||||||
.eslint*
|
.eslint*
|
||||||
|
.gitignore
|
||||||
.prettier*
|
.prettier*
|
||||||
.(yarn|npm|nvm)rc
|
.(yarn|npm|nvm)rc
|
||||||
*.md
|
*.md
|
||||||
process.json
|
|
||||||
app.json
|
app.json
|
||||||
.travis.yml
|
docker-compose*
|
||||||
app-minimal
|
|
||||||
.idea
|
|
||||||
.env
|
|
||||||
.editorconfig
|
|
||||||
Procfile
|
|
||||||
now.json
|
|
||||||
jsconfig.json
|
jsconfig.json
|
||||||
|
npm-debug.log
|
||||||
|
process.json
|
||||||
package-lock.json
|
package-lock.json
|
||||||
|
vercel.json
|
||||||
|
|
||||||
#git but keep the git commit hash
|
#git but keep the git commit hash
|
||||||
.git/logs
|
.git/logs
|
||||||
|
|||||||
7
now.json
7
now.json
@@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
"version": 2,
|
|
||||||
"routes": [
|
|
||||||
{ "src": "/api/.*", "dest": "/api/now.js" },
|
|
||||||
{ "src": "/.*", "dest": "/api/now.js" }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -6,7 +6,7 @@ const { nodeFileTrace } = require('@vercel/nft');
|
|||||||
|
|
||||||
const projectRoot = path.resolve(process.env.PROJECT_ROOT || path.join(__dirname, '../..'));
|
const projectRoot = path.resolve(process.env.PROJECT_ROOT || path.join(__dirname, '../..'));
|
||||||
const resultFolder = path.join(projectRoot, 'app-minimal'); // no need to resolve, ProjectRoot is always absolute
|
const resultFolder = path.join(projectRoot, 'app-minimal'); // no need to resolve, ProjectRoot is always absolute
|
||||||
const files = ['lib/index.js', 'api/now.js'].map((file) => path.join(projectRoot, file));
|
const files = ['lib/index.js', 'api/vercel.js'].map((file) => path.join(projectRoot, file));
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
console.log('Start analyzing, project root:', projectRoot);
|
console.log('Start analyzing, project root:', projectRoot);
|
||||||
|
|||||||
6
vercel.json
Normal file
6
vercel.json
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"routes": [
|
||||||
|
{ "src": "/api/.*", "dest": "/api/vercel.js" },
|
||||||
|
{ "src": "/.*", "dest": "/api/vercel.js" }
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user