Skip to content

Commit

Permalink
Fix demo vercel deployment resulting in 500 errors
Browse files Browse the repository at this point in the history
Use custom vercel.json configuration with up to date @vercel/python package
  • Loading branch information
rclement committed Jan 10, 2025
1 parent 7731ffe commit 344210e
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 15 additions & 0 deletions demo/vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "datasette-dashboards-demo",
"builds": [
{
"src": "index.py",
"use": "@vercel/[email protected]"
}
],
"routes": [
{
"src": "(.*)",
"dest": "index.py"
}
]
}

0 comments on commit 344210e

Please sign in to comment.