mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-11-30 17:17:55 +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
|
||||
.idea
|
||||
.vscode
|
||||
Dockerfile*
|
||||
LICENSE
|
||||
Procfile
|
||||
app-minimal
|
||||
assets
|
||||
coverage
|
||||
docs
|
||||
node_modules
|
||||
test
|
||||
.codecov.yml
|
||||
.dockerignore
|
||||
.editorconfig
|
||||
.env
|
||||
.eslint*
|
||||
.gitignore
|
||||
.prettier*
|
||||
.(yarn|npm|nvm)rc
|
||||
*.md
|
||||
process.json
|
||||
app.json
|
||||
.travis.yml
|
||||
app-minimal
|
||||
.idea
|
||||
.env
|
||||
.editorconfig
|
||||
Procfile
|
||||
now.json
|
||||
docker-compose*
|
||||
jsconfig.json
|
||||
npm-debug.log
|
||||
process.json
|
||||
package-lock.json
|
||||
vercel.json
|
||||
|
||||
#git but keep the git commit hash
|
||||
.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 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 () => {
|
||||
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