From 18e0df7522e66fd24546f9c30e623897670c94c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rnar=20Hagen?= Date: Sun, 16 Jul 2023 22:20:33 +0200 Subject: [PATCH] test pipeline --- .github/workflows/main.yml | 7 +++++-- vercel-config.json | 14 ++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 vercel-config.json diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 94f1e5a..74b63a4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,8 +26,11 @@ jobs: - name: Run build.sh run: bash build.sh - - name: Copy contents of "dist/" into ".vercel/output/" - run: mkdir -p .vercel/output && cp -r dist/ .vercel/output/ + - name: Copy contents of "dist/" into ".vercel/output/static/" + run: mkdir -p .vercel/output/static/ && cp -r dist/ .vercel/output/static/ + + - name: Copy vercel-config.json to ".vercel/output/config.json" + run: cp vercel-config.json .vercel/output/config.json - name: Install Vercel CLI run: npm install --global vercel@latest diff --git a/vercel-config.json b/vercel-config.json new file mode 100644 index 0000000..0e54f5f --- /dev/null +++ b/vercel-config.json @@ -0,0 +1,14 @@ +{ + "version": 3, + "routes": [ + { + "handle": "error" + }, + { + "status": 404, + "src": "^(?!/api).*$", + "dest": "/404.html" + } + ], + "crons": [] +}