Skip to content

Commit 4b69ca7

Browse files
committed
Fix demo vercel deployment resulting in 500 errors
Use custom vercel.json configuration with up to date @vercel/python package
1 parent 7731ffe commit 4b69ca7

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

.github/workflows/ci-cd.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ jobs:
113113
--install=https://github.com/rclement/datasette-dashboards/archive/${GITHUB_SHA}.zip \
114114
--project=${{ secrets.VERCEL_PROJECT }} \
115115
--token=${{ secrets.VERCEL_TOKEN }} \
116+
--vercel-json=demo/vercel.json \
116117
--no-prod)
117118
vercel alias --token ${{ secrets.VERCEL_TOKEN }} set ${VERCEL_URL} ${VERCEL_ALIAS}
118119
@@ -154,7 +155,8 @@ jobs:
154155
--install=datasette-sqlite-http \
155156
--install=https://github.com/rclement/datasette-dashboards/archive/${GITHUB_SHA}.zip \
156157
--project=${{ secrets.VERCEL_PROJECT }} \
157-
--token=${{ secrets.VERCEL_TOKEN }}
158+
--token=${{ secrets.VERCEL_TOKEN }} \
159+
--vercel-json=demo/vercel.json
158160
159161
publish-package-test:
160162
runs-on: ubuntu-latest

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
### Fixed
9+
- Demo Vercel deployment resulting in error 500
10+
11+
### Changed
12+
- Update dependencies
813

914
## [0.7.0] - 2024-11-14
1015
### Added

demo/vercel.json

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "datasette-dashboards-demo",
3+
"builds": [
4+
{
5+
"src": "index.py",
6+
"use": "@vercel/[email protected]"
7+
}
8+
],
9+
"routes": [
10+
{
11+
"src": "(.*)",
12+
"dest": "index.py"
13+
}
14+
]
15+
}

0 commit comments

Comments
 (0)