Skip to content

Commit

Permalink
chore: rename now to vercel (DIYgod#9791)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony authored May 20, 2022
1 parent e1347b3 commit 11ef5c4
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 23 deletions.
29 changes: 14 additions & 15 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,32 +1,31 @@
node_modules
npm-debug.log
.github
.idea
.vscode
Dockerfile*
docker-compose*
.dockerignore
.gitignore
LICENSE
.vscode
.github
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
Expand Down
File renamed without changes.
7 changes: 0 additions & 7 deletions now.json

This file was deleted.

2 changes: 1 addition & 1 deletion scripts/docker/minify-docker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 6 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"routes": [
{ "src": "/api/.*", "dest": "/api/vercel.js" },
{ "src": "/.*", "dest": "/api/vercel.js" }
]
}

0 comments on commit 11ef5c4

Please sign in to comment.