diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 884286f..4791c1b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,8 @@ permissions: {} jobs: ci: timeout-minutes: 15 + env: + VP_REMOTE_CACHE: read strategy: fail-fast: false diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6b9cbe2..a11df79 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -15,6 +15,12 @@ concurrency: jobs: build: runs-on: ubuntu-latest + env: + VP_REMOTE_CACHE: >- + ${{ github.event_name == 'push' && + github.ref == 'refs/heads/main' && + github.repository == 'voidzero-dev/vibe-dashboard' && + 'read-write' || 'read' }} permissions: contents: read pages: write diff --git a/vite.config.ts b/vite.config.ts index e33031e..59cc696 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,6 +1,12 @@ import { defineConfig } from "vite-plus"; export default defineConfig({ + run: { + cache: true, + remoteCache: { + url: "https://vibe-dashboard-cache.remote-cache-demo.workers.dev/projects/vibe-dashboard", + }, + }, staged: { "*": "vp check --fix", },