Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into refactor/create-api
Browse files Browse the repository at this point in the history
  • Loading branch information
tylersayshi committed Jan 13, 2025
2 parents cca3b8f + 42f9000 commit 29f34d4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ jobs:
- run: pnpm exec playwright test --shard=${{ matrix.shared }}/${{ matrix.shardTotal }}
env:
TEMP_DIR: ${{ runner.temp }}
VITE_EXPERIMENTAL_WAKU_ROUTER: true
- uses: actions/upload-artifact@v4
if: always()
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ jobs:
cache: 'pnpm'
- run: pnpm install
- run: pnpm test
env:
VITE_EXPERIMENTAL_WAKU_ROUTER: true
4 changes: 4 additions & 0 deletions packages/waku/src/router/create-pages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,10 @@ export const createPages = <
};

const createApi: CreateApi = (options) => {
if (!import.meta.env.VITE_EXPERIMENTAL_WAKU_ROUTER) {
console.warn('createApi is still experimental');
return;
}
if (configured) {
throw new Error('createApi no longer available');
}
Expand Down

0 comments on commit 29f34d4

Please sign in to comment.