File tree 2 files changed +9
-11
lines changed
2 files changed +9
-11
lines changed Original file line number Diff line number Diff line change 20
20
fail-fast : false
21
21
matrix :
22
22
base-path : [false, '/base']
23
+ nav-raf : [false, true]
23
24
steps :
24
25
- uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
25
26
- uses : pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598
37
38
run : pnpm run test
38
39
env :
39
40
BASE_PATH : ${{ matrix.base-path && matrix.base-path || '/' }}
41
+ NAVIGATION_RAF : ${{ matrix.nav-raf && 'true' || 'false' }}
40
42
TURBO_TOKEN : ${{ secrets.TURBO_TOKEN }}
41
43
TURBO_TEAM : ${{ secrets.TURBO_TEAM }}
42
44
- name : Save Cypress artifacts
Original file line number Diff line number Diff line change 1
- const experimental =
2
- process . env . WINDOW_HISTORY_SUPPORT === 'true'
3
- ? {
4
- windowHistorySupport : true ,
5
- clientRouterFilter : false
6
- }
7
- : {
8
- clientRouterFilter : false
9
- }
10
-
11
1
const basePath =
12
2
process . env . BASE_PATH === '/' ? undefined : process . env . BASE_PATH
13
3
14
4
/** @type {import('next').NextConfig } */
15
5
const config = {
16
6
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
+ } ,
18
13
rewrites : async ( ) => [
19
14
{
20
15
source : '/app/rewrites/source' ,
@@ -31,6 +26,7 @@ const config = {
31
26
console . info ( `Next.js config:
32
27
basePath: ${ basePath }
33
28
windowHistorySupport: ${ experimental ?. windowHistorySupport ?? false }
29
+ navigationRAF: ${ experimental ?. navigationRAF ?? false }
34
30
` )
35
31
36
32
export default config
You can’t perform that action at this time.
0 commit comments