From b868bf8c99c905adf7dcfe8cf75b55cc10eea23b Mon Sep 17 00:00:00 2001 From: autoactions Date: Wed, 18 Dec 2024 21:07:12 +0800 Subject: [PATCH] feat: Add vercel deployment configuration --- .vercelignore | 26 ++++++++++++++++++++++++++ vercel.json | 13 +++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 .vercelignore create mode 100644 vercel.json diff --git a/.vercelignore b/.vercelignore new file mode 100644 index 00000000000..a794adcee21 --- /dev/null +++ b/.vercelignore @@ -0,0 +1,26 @@ +# Git related +.git +.github +.gitmodules +.gitattributes +.gitignore + +# Development configs +.vscode +.idea +.dependency-cruiser.cjs + +# Environment and secrets +.env +.env.* + +# Documentation and logs +docs +*.md +*.log + +# Test files +coverage +test +**/*.test.* +**/__tests__ \ No newline at end of file diff --git a/vercel.json b/vercel.json new file mode 100644 index 00000000000..bf5477c83d8 --- /dev/null +++ b/vercel.json @@ -0,0 +1,13 @@ +{ + "version": 2, + "buildCommand": "npm run build", + "outputDirectory": "dist", + "installCommand": "npm config set ignore-scripts true && npm ci && npm rebuild", + "routes": [ + { "handle": "filesystem" }, + { "src": "/.*", "dest": "/index.html" } + ], + "env": { + "SKIP_POSTINSTALL": "1" + } + } \ No newline at end of file