diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 26052eb..596c890 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -113,6 +113,7 @@ jobs: --install=https://github.com/rclement/datasette-dashboards/archive/${GITHUB_SHA}.zip \ --project=${{ secrets.VERCEL_PROJECT }} \ --token=${{ secrets.VERCEL_TOKEN }} \ + --vercel-json=demo/vercel.json \ --no-prod) vercel alias --token ${{ secrets.VERCEL_TOKEN }} set ${VERCEL_URL} ${VERCEL_ALIAS} @@ -154,7 +155,8 @@ jobs: --install=datasette-sqlite-http \ --install=https://github.com/rclement/datasette-dashboards/archive/${GITHUB_SHA}.zip \ --project=${{ secrets.VERCEL_PROJECT }} \ - --token=${{ secrets.VERCEL_TOKEN }} + --token=${{ secrets.VERCEL_TOKEN }} \ + --vercel-json=demo/vercel.json publish-package-test: runs-on: ubuntu-latest diff --git a/CHANGELOG.md b/CHANGELOG.md index 9853828..f713fbc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Fixed +- Demo Vercel deployment resulting in error 500 + +### Changed +- Update dependencies ## [0.7.0] - 2024-11-14 ### Added diff --git a/demo/vercel.json b/demo/vercel.json new file mode 100644 index 0000000..0ebc822 --- /dev/null +++ b/demo/vercel.json @@ -0,0 +1,15 @@ +{ + "name": "datasette-dashboards-demo", + "builds": [ + { + "src": "index.py", + "use": "@vercel/python@4.6.0" + } + ], + "routes": [ + { + "src": "(.*)", + "dest": "index.py" + } + ] +} \ No newline at end of file