chore: rename now to vercel (#9791)

This commit is contained in:
Tony
2022-05-20 07:27:08 -04:00
committed by GitHub
parent e1347b3d99
commit 11ef5c4dba
5 changed files with 22 additions and 24 deletions

View File

@@ -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

View File

View File

@@ -1,7 +0,0 @@
{
"version": 2,
"routes": [
{ "src": "/api/.*", "dest": "/api/now.js" },
{ "src": "/.*", "dest": "/api/now.js" }
]
}

View File

@@ -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
View File

@@ -0,0 +1,6 @@
{
"routes": [
{ "src": "/api/.*", "dest": "/api/vercel.js" },
{ "src": "/.*", "dest": "/api/vercel.js" }
]
}