Skip to content

Commit 779c538

Browse files
committed
test: Test against navigationRAF flag
1 parent 52c6558 commit 779c538

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

.github/workflows/test-against-nextjs-release.yml

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
fail-fast: false
2121
matrix:
2222
base-path: [false, '/base']
23+
nav-raf: [false, true]
2324
steps:
2425
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
2526
- uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598
@@ -37,6 +38,7 @@ jobs:
3738
run: pnpm run test
3839
env:
3940
BASE_PATH: ${{ matrix.base-path && matrix.base-path || '/' }}
41+
NAVIGATION_RAF: ${{ matrix.nav-raf && 'true' || 'false' }}
4042
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
4143
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
4244
- name: Save Cypress artifacts

packages/e2e/next.config.mjs

+7-11
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,15 @@
1-
const experimental =
2-
process.env.WINDOW_HISTORY_SUPPORT === 'true'
3-
? {
4-
windowHistorySupport: true,
5-
clientRouterFilter: false
6-
}
7-
: {
8-
clientRouterFilter: false
9-
}
10-
111
const basePath =
122
process.env.BASE_PATH === '/' ? undefined : process.env.BASE_PATH
133

144
/** @type {import('next').NextConfig } */
155
const config = {
166
basePath,
17-
experimental,
7+
experimental: {
8+
windowHistorySupport:
9+
process.env.WINDOW_HISTORY_SUPPORT === 'true' ? true : undefined,
10+
navigationRAF: process.env.NAVIGATION_RAF === 'true',
11+
clientRouterFilter: false
12+
},
1813
rewrites: async () => [
1914
{
2015
source: '/app/rewrites/source',
@@ -31,6 +26,7 @@ const config = {
3126
console.info(`Next.js config:
3227
basePath: ${basePath}
3328
windowHistorySupport: ${experimental?.windowHistorySupport ?? false}
29+
navigationRAF: ${experimental?.navigationRAF ?? false}
3430
`)
3531

3632
export default config

0 commit comments

Comments
 (0)