From 371d397c09374842e3f2acb8d59d3d7e6afb0ed5 Mon Sep 17 00:00:00 2001 From: Naily Date: Sun, 10 Nov 2024 18:49:15 +0800 Subject: [PATCH] ci: remove vercel, prepare add serverless in plugin --- scripts/deploy.js | 15 --------------- vercel.json | 15 --------------- 2 files changed, 30 deletions(-) delete mode 100644 scripts/deploy.js delete mode 100644 vercel.json diff --git a/scripts/deploy.js b/scripts/deploy.js deleted file mode 100644 index d357795..0000000 --- a/scripts/deploy.js +++ /dev/null @@ -1,15 +0,0 @@ -import path from 'node:path' -import { env } from 'node:process' -import { preview } from 'vite' - -async function startServer() { - const server = await preview({ - preview: { - port: env.PORT || 3000, // 使用 Vercel 提供的端口 - }, - configFile: path.resolve('vite.config.ts'), - }) - server.printUrls() -} - -startServer() diff --git a/vercel.json b/vercel.json deleted file mode 100644 index db3096e..0000000 --- a/vercel.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "version": 2, - "builds": [ - { - "src": "scripts/deploy.js", - "use": "@vercel/node" - } - ], - "routes": [ - { - "src": "/(.*)", - "dest": "scripts/deploy.js" - } - ] -}