diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index 46cc88d..0000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,60 +0,0 @@ -name: Deploy - -on: - push: - branches: [main] - workflow_dispatch: - -permissions: - contents: read - pages: write - id-token: write - -# Allow one concurrent deployment; cancel in-progress runs for newer pushes. -concurrency: - group: pages - cancel-in-progress: true - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - uses: pnpm/action-setup@v4 - with: - version: 10.20.0 - - - uses: actions/setup-node@v4 - with: - node-version: 24 - cache: pnpm - - - name: Install dependencies - run: pnpm install --frozen-lockfile - - - name: Build site - # base must match the path the site is served under so asset URLs - # resolve, e.g. // for GitHub Pages project sites, or the - # rewrite prefix for the dunky-dev.com multi-zone setup. - env: - BASE_PATH: /TODO-set-base-path/ - # TODO: point this at the site package, e.g. `pnpm -C website build` - run: pnpm -C website build - - - uses: actions/configure-pages@v5 - - - uses: actions/upload-pages-artifact@v3 - with: - # TODO: match your site's build output dir - path: website/dist - - deploy: - needs: build - runs-on: ubuntu-latest - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - steps: - - id: deployment - uses: actions/deploy-pages@v4 diff --git a/vercel.json b/vercel.json new file mode 100644 index 0000000..72e8126 --- /dev/null +++ b/vercel.json @@ -0,0 +1,15 @@ +{ + "$schema": "https://openapi.vercel.sh/vercel.json", + "outputDirectory": "src", + "cleanUrls": true, + "rewrites": [ + { + "source": "/state-machine", + "destination": "https://dunky-state-machine.vercel.app/state-machine" + }, + { + "source": "/state-machine/:path*", + "destination": "https://dunky-state-machine.vercel.app/state-machine/:path*" + } + ] +}