From 11ef5c4dba9cc48b2f0509b08bf52eb080613255 Mon Sep 17 00:00:00 2001 From: Tony Date: Fri, 20 May 2022 07:27:08 -0400 Subject: [PATCH] chore: rename `now` to `vercel` (#9791) --- .dockerignore | 31 +++++++++++++++---------------- api/{now.js => vercel.js} | 0 now.json | 7 ------- scripts/docker/minify-docker.js | 2 +- vercel.json | 6 ++++++ 5 files changed, 22 insertions(+), 24 deletions(-) rename api/{now.js => vercel.js} (100%) delete mode 100644 now.json create mode 100644 vercel.json diff --git a/.dockerignore b/.dockerignore index ccb5b2a289..6816be3151 100644 --- a/.dockerignore +++ b/.dockerignore @@ -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 diff --git a/api/now.js b/api/vercel.js similarity index 100% rename from api/now.js rename to api/vercel.js diff --git a/now.json b/now.json deleted file mode 100644 index 6691f392a1..0000000000 --- a/now.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 2, - "routes": [ - { "src": "/api/.*", "dest": "/api/now.js" }, - { "src": "/.*", "dest": "/api/now.js" } - ] -} diff --git a/scripts/docker/minify-docker.js b/scripts/docker/minify-docker.js index 908eb49012..c12274a601 100644 --- a/scripts/docker/minify-docker.js +++ b/scripts/docker/minify-docker.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); diff --git a/vercel.json b/vercel.json new file mode 100644 index 0000000000..b2b787b45a --- /dev/null +++ b/vercel.json @@ -0,0 +1,6 @@ +{ + "routes": [ + { "src": "/api/.*", "dest": "/api/vercel.js" }, + { "src": "/.*", "dest": "/api/vercel.js" } + ] +}