Unverified Commit a3451408 authored by Sam Selikoff's avatar Sam Selikoff Committed by GitHub

Instant navs devtools revamp (#94027)

This updates the Instant Navs DevTools panel to better model capture
state across pending, SPA, and MPA navigations.

- Revamps the Navigation Inspector UI states, controls, focus behavior,
and panel transitions
- Resets capture state when closing the panel from active capture states
- Keeps MPA reloads and root-layout-crossing navigations from briefly
showing stale or optimistic SPA state
- Consolidates the panel state flow so cookie state, re-arming, and
rendered UI status are easier to follow
- Expands the instant navs fixture and tests to cover SPA captures, MPA
captures, reloads, close/reset, Continue Rendering, and root-layout MPA
links
parent 765b39c4
...@@ -11,24 +11,15 @@ ...@@ -11,24 +11,15 @@
* captured = self-write (ignored). * captured = self-write (ignored).
*/ */
import type { FlightRouterState } from '../../../shared/lib/app-router-types' import type {
FlightRouterState,
InstantCookie,
} from '../../../shared/lib/app-router-types'
import { NEXT_INSTANT_TEST_COOKIE } from '../app-router-headers' import { NEXT_INSTANT_TEST_COOKIE } from '../app-router-headers'
import { refreshOnInstantNavigationUnlock } from '../use-action-queue' import { refreshOnInstantNavigationUnlock } from '../use-action-queue'
type InstantNavCookieState = 'empty' | 'pending' | 'mpa' | 'spa' type InstantNavCookieState = 'empty' | 'pending' | 'mpa' | 'spa'
type InstantCookie =
// pending (waiting to capture)
| [captured: 0, id: string]
// captured MPA page load
| [captured: 1, id: string, state: null]
// captured SPA navigation (from/to route trees)
| [
captured: 1,
id: string,
state: { from: FlightRouterState; to: FlightRouterState | null },
]
function parseCookieValue(raw: string): InstantNavCookieState { function parseCookieValue(raw: string): InstantNavCookieState {
if (raw === '') { if (raw === '') {
return 'empty' return 'empty'
...@@ -177,8 +168,13 @@ export function startListeningForInstantNavigationCookie(): void { ...@@ -177,8 +168,13 @@ export function startListeningForInstantNavigationCookie(): void {
}) })
} }
writeCookieValue([1, `c${Math.random()}`, null]) // Acquire the lock before writing the cookie. writeCookieValue's
// guard requires lockState to be non-null at call time (so a stale
// write can't outlive its scope). On a fresh page load that scope
// is the one we're about to establish, so we have to establish it
// first.
acquireLock() acquireLock()
writeCookieValue([1, `c${Math.random()}`, null])
} }
if (typeof cookieStore === 'undefined') { if (typeof cookieStore === 'undefined') {
...@@ -214,24 +210,8 @@ export function startListeningForInstantNavigationCookie(): void { ...@@ -214,24 +210,8 @@ export function startListeningForInstantNavigationCookie(): void {
} }
/** /**
* Transitions the cookie from pending to captured-SPA. Called when a * Transitions the cookie from pending to captured-SPA once the prefetch resolves
* client-side navigation is captured by the lock. * and the navigation is known to be an SPA.
*
* @param fromTree - The flight router state of the from-route
* @param toTree - The flight router state of the to-route (null if not yet known)
*/
export function transitionToCapturedSPA(
fromTree: FlightRouterState,
toTree: FlightRouterState | null
): void {
if (process.env.__NEXT_EXPOSE_TESTING_API) {
writeCookieValue([1, `c${Math.random()}`, { from: fromTree, to: toTree }])
}
}
/**
* Updates the captured-SPA cookie with the resolved route trees.
* Called after the prefetch resolves and the target route tree is known.
*/ */
export function updateCapturedSPAToTree( export function updateCapturedSPAToTree(
fromTree: FlightRouterState, fromTree: FlightRouterState,
......
...@@ -951,15 +951,6 @@ async function ensurePrefetchThenNavigate( ...@@ -951,15 +951,6 @@ async function ensurePrefetchThenNavigate(
const link = getLinkForCurrentNavigation() const link = getLinkForCurrentNavigation()
const fetchStrategy = link !== null ? link.fetchStrategy : FetchStrategy.PPR const fetchStrategy = link !== null ? link.fetchStrategy : FetchStrategy.PPR
// Transition the cookie to captured-SPA immediately, before waiting
// for the prefetch. This ensures the devtools panel can update its UI
// right away, even if the prefetch takes time (e.g. dev compilation).
// The "to" tree starts as null and is filled in after the prefetch
// resolves and the navigation produces a new router state.
const { transitionToCapturedSPA, updateCapturedSPAToTree } =
require('./navigation-testing-lock') as typeof import('./navigation-testing-lock')
transitionToCapturedSPA(currentFlightRouterState, null)
const cacheKey = createCacheKey(url.href, nextUrl) const cacheKey = createCacheKey(url.href, nextUrl)
await new Promise<void>((resolve) => { await new Promise<void>((resolve) => {
...@@ -988,9 +979,14 @@ async function ensurePrefetchThenNavigate( ...@@ -988,9 +979,14 @@ async function ensurePrefetchThenNavigate(
navigateType navigateType
) )
// Update the cookie with the resolved "to" tree so the devtools // Only transition to captured-SPA once the navigation is known to be an SPA.
// panel can display both routes immediately. // If the result is an MPA navigation, leave the cookie pending and let the new
updateCapturedSPAToTree(currentFlightRouterState, result.tree) // document load transition it to captured-MPA.
if (!result.pushRef.mpaNavigation) {
const { updateCapturedSPAToTree } =
require('./navigation-testing-lock') as typeof import('./navigation-testing-lock')
updateCapturedSPAToTree(currentFlightRouterState, result.tree)
}
return result return result
} }
import React, { useLayoutEffect, useRef } from 'react' import React from 'react'
import { usePanelRouterContext } from '../../../../menu/context' import { usePanelRouterContext } from '../../../../menu/context'
import { css } from '../../../../utils/css' import { css } from '../../../../utils/css'
...@@ -12,11 +12,6 @@ export function DevToolsHeader({ ...@@ -12,11 +12,6 @@ export function DevToolsHeader({
ref, ref,
}: DevToolsHeaderProps & { ref?: React.Ref<HTMLDivElement> }) { }: DevToolsHeaderProps & { ref?: React.Ref<HTMLDivElement> }) {
const { setPanel } = usePanelRouterContext() const { setPanel } = usePanelRouterContext()
const buttonRef = useRef<HTMLButtonElement>(null)
useLayoutEffect(() => {
buttonRef.current?.focus()
}, [])
return ( return (
<div <div
style={{ style={{
...@@ -43,7 +38,6 @@ export function DevToolsHeader({ ...@@ -43,7 +38,6 @@ export function DevToolsHeader({
</h3> </h3>
{children} {children}
<button <button
ref={buttonRef}
id="_next-devtools-panel-close" id="_next-devtools-panel-close"
className="dev-tools-info-close-button" className="dev-tools-info-close-button"
onClick={() => { onClick={() => {
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* Cookie reading and subscription for the instant navigation devtools panel. * Cookie reading and subscription for the instant navigation devtools panel.
* *
* The cookie value is a JSON array: * The cookie value is a JSON array:
* [0] — pending (waiting to capture) * [0, id] — pending (waiting to capture)
* [1, null] — captured MPA page load * [1, id, null] — captured MPA page load
* [1, { from, to }] — captured SPA navigation (from/to route trees) * [1, id, { from, to }] — captured SPA navigation (from/to route trees)
* *
* The "to" tree may be null initially and updated after the prefetch resolves. * The "to" tree may be null initially and updated after the prefetch resolves.
*/ */
...@@ -15,45 +15,20 @@ import type { ...@@ -15,45 +15,20 @@ import type {
FlightRouterState, FlightRouterState,
Segment, Segment,
} from '../../../../shared/lib/app-router-types' } from '../../../../shared/lib/app-router-types'
import {
parseInstantNavCookieValue,
type InstantNavCookieData,
} from '../../../../shared/lib/instant-nav-cookie'
const COOKIE_NAME = 'next-instant-navigation-testing' const COOKIE_NAME = 'next-instant-navigation-testing'
export type InstantNavCookieData =
| { state: 'pending' }
| { state: 'mpa' }
| {
state: 'spa'
fromTree: FlightRouterState
toTree: FlightRouterState | null
}
function parseCookieValue(raw: string): InstantNavCookieData {
try {
const parsed = JSON.parse(raw)
if (Array.isArray(parsed) && parsed.length >= 3) {
const rawState = parsed[2]
if (rawState === null) {
return { state: 'mpa' }
}
// SPA capture: rawState is { from, to }
if (typeof rawState === 'object' && rawState !== null) {
const fromTree: FlightRouterState = rawState.from ?? ['', {}]
const toTree: FlightRouterState | null = rawState.to ?? null
return { state: 'spa', fromTree, toTree }
}
return { state: 'spa', fromTree: ['', {}], toTree: null }
}
} catch {}
return { state: 'pending' }
}
export function readInstantNavCookieState(): export function readInstantNavCookieState():
| InstantNavCookieData['state'] | InstantNavCookieData['state']
| null { | null {
if (typeof document === 'undefined') return null if (typeof document === 'undefined') return null
const match = document.cookie.match(/next-instant-navigation-testing=([^;]*)/) const match = document.cookie.match(/next-instant-navigation-testing=([^;]*)/)
if (!match) return null if (!match) return null
return parseCookieValue(match[1]).state return parseInstantNavCookieValue(match[1]).state
} }
/** /**
...@@ -127,6 +102,15 @@ function getSnapshot(): string { ...@@ -127,6 +102,15 @@ function getSnapshot(): string {
return readRawCookieValue() return readRawCookieValue()
} }
function isInitialInstantTestStaticShell(rawValue: string): boolean {
return (
rawValue !== '' &&
cachedRawValue === undefined &&
typeof self !== 'undefined' &&
Boolean(self.__next_instant_test)
)
}
function subscribe(callback: () => void): () => void { function subscribe(callback: () => void): () => void {
if (typeof cookieStore === 'undefined') { if (typeof cookieStore === 'undefined') {
return () => {} return () => {}
...@@ -166,6 +150,12 @@ export function useInstantNavCookieState(): InstantNavCookieData | null { ...@@ -166,6 +150,12 @@ export function useInstantNavCookieState(): InstantNavCookieData | null {
const rawValue = useSyncExternalStore(subscribe, getSnapshot) const rawValue = useSyncExternalStore(subscribe, getSnapshot)
return useMemo(() => { return useMemo(() => {
if (!rawValue) return null if (!rawValue) return null
return parseCookieValue(rawValue) // A full page load into an instant-test static shell writes the MPA
// cookie asynchronously. Until that CookieStore event lands, the cookie
// may still contain the previous SPA capture from before the reload.
if (isInitialInstantTestStaticShell(rawValue)) {
return { state: 'mpa' }
}
return parseInstantNavCookieValue(rawValue)
}, [rawValue]) }, [rawValue])
} }
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
.instant-nav-content { .instant-nav-content {
flex: 1; flex: 1;
padding: 12px 20px 0; padding: 16px 20px;
} }
/* Waiting state: preference-style sections */ /* Waiting state: preference-style sections */
...@@ -138,6 +138,154 @@ ...@@ -138,6 +138,154 @@
margin: 8px 0 0; margin: 8px 0 0;
} }
/* Initial pending (capture) state */
.instant-nav-content-container {
position: relative;
height: 83px;
/* overflow: hidden; */
margin-bottom: 24px;
transition: height var(--instant-nav-transition-duration, 200ms)
var(--instant-nav-transition-timing, var(--timing-swift));
}
.instant-nav-content-container.is-expanded {
height: 140px;
}
.instant-nav-transition-layer {
position: absolute;
inset: 0;
opacity: var(--instant-nav-layer-opacity, 0);
pointer-events: none;
transition: opacity var(--instant-nav-layer-transition-duration, 100ms)
cubic-bezier(0.25, 0.8, 0.5, 1)
var(--instant-nav-layer-transition-delay, 0ms);
}
.instant-nav-transition-layer.is-visible {
z-index: 1;
pointer-events: auto;
}
.instant-nav-transition-layer--no-enter {
transition: none;
}
.instant-nav-intro-description {
margin: 0;
color: var(--color-gray-1000);
font-size: var(--size-14);
line-height: 1.5;
}
.instant-nav-divider {
border: 0;
border-top: 1px solid var(--color-gray-400);
margin: 16px 0;
}
.instant-nav-capture-controls {
display: flex;
gap: 12px;
}
.instant-nav-capture-button {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
flex: 1;
padding: 8px 24px;
border-radius: 9999px;
border: 1px solid var(--color-gray-600);
background: var(--color-background-100);
color: var(--color-gray-1000);
font-size: var(--size-14);
font-weight: 400;
cursor: pointer;
transition:
background-color 150ms var(--timing-swift),
border-color 150ms var(--timing-swift);
}
.instant-nav-capture-button svg {
position: absolute;
left: 8px;
}
.instant-nav-capture-button--inline-icon {
/* gap: 8px; */
}
.instant-nav-capture-button--inline-icon svg {
position: static;
margin-right: 4px;
}
.instant-nav-capture-button:hover:not(:disabled) {
background: var(--color-gray-200);
}
.instant-nav-capture-button:focus-visible {
outline: var(--focus-ring);
outline-offset: 2px;
}
.instant-nav-capture-button:disabled {
border-color: var(--color-gray-400);
color: var(--color-gray-700);
cursor: not-allowed;
}
.instant-nav-capture-button--active {
background: var(--color-red-200);
border-color: var(--color-red-700);
color: var(--color-red-900);
}
.instant-nav-capture-button--active:hover:not(:disabled) {
background: var(--color-red-300);
}
.instant-nav-state-card {
padding: 16px;
border-radius: var(--rounded-lg);
background: var(--color-background-200);
border: 1px solid var(--color-gray-500);
display: flex;
flex-direction: column;
height: 140px;
box-sizing: border-box;
}
.instant-nav-state-title {
margin: 0;
font-size: var(--size-18);
font-weight: 600;
color: var(--color-gray-1000);
}
.instant-nav-state-description {
margin: 4px 0 0;
font-size: var(--size-14);
color: var(--color-gray-1000);
}
.instant-nav-state-card--awaiting .instant-nav-state-description {
margin-top: auto;
color: var(--color-gray-900);
}
.instant-nav-state-source-url {
margin: auto 0 0;
font-size: var(--size-14);
color: var(--color-gray-900);
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
/* Footer (pinned to bottom, matching segment-explorer-footer) */ /* Footer (pinned to bottom, matching segment-explorer-footer) */
.instant-nav-footer { .instant-nav-footer {
display: flex; display: flex;
......
...@@ -109,7 +109,7 @@ const MenuPanel = () => { ...@@ -109,7 +109,7 @@ const MenuPanel = () => {
isAppRouter && isAppRouter &&
!!process.env.__NEXT_INSTANT_NAV_TOGGLE && { !!process.env.__NEXT_INSTANT_NAV_TOGGLE && {
title: 'Test instant navigation behavior.', title: 'Test instant navigation behavior.',
label: 'Instant Navs', label: 'Navigation Inspector',
value: <ChevronRight />, value: <ChevronRight />,
onClick: () => { onClick: () => {
setPanel('instant-navs') setPanel('instant-navs')
...@@ -275,11 +275,10 @@ export const PanelRouter = () => { ...@@ -275,11 +275,10 @@ export const PanelRouter = () => {
sharePanelPositionGlobally={false} sharePanelPositionGlobally={false}
draggable draggable
sizeConfig={{ sizeConfig={{
kind: 'fixed', kind: 'auto',
height: 300 / state.scale, width: 460 / state.scale,
width: 480 / state.scale,
}} }}
header={<DevToolsHeader title="Instant Navs" />} header={<DevToolsHeader title="Navigation Inspector" />}
> >
<InstantNavsPanel /> <InstantNavsPanel />
</DynamicPanel> </DynamicPanel>
......
...@@ -114,6 +114,10 @@ export function DynamicPanel({ ...@@ -114,6 +114,10 @@ export function DynamicPanel({
height: number height: number
width: number width: number
} }
| {
kind: 'auto'
width: number
}
closeOnClickOutside?: boolean closeOnClickOutside?: boolean
}) { }) {
const { setPanel } = usePanelRouterContext() const { setPanel } = usePanelRouterContext()
...@@ -156,6 +160,12 @@ export function DynamicPanel({ ...@@ -156,6 +160,12 @@ export function DynamicPanel({
} }
) )
useEffect(() => {
if (mounted) {
resizeContainerRef.current?.focus()
}
}, [mounted])
const indicatorOffset = getIndicatorOffset(state) const indicatorOffset = getIndicatorOffset(state)
const [indicatorVertical, indicatorHorizontal] = state.devToolsPosition.split( const [indicatorVertical, indicatorHorizontal] = state.devToolsPosition.split(
...@@ -200,7 +210,11 @@ export function DynamicPanel({ ...@@ -200,7 +210,11 @@ export function DynamicPanel({
value={{ value={{
resizeRef: resizeContainerRef, resizeRef: resizeContainerRef,
initialSize: initialSize:
sizeConfig.kind === 'resizable' ? sizeConfig.initialSize : sizeConfig, sizeConfig.kind === 'resizable'
? sizeConfig.initialSize
: sizeConfig.kind === 'fixed'
? { height: sizeConfig.height, width: sizeConfig.width }
: undefined,
minWidth, minWidth,
minHeight, minHeight,
maxWidth, maxWidth,
...@@ -231,10 +245,15 @@ export function DynamicPanel({ ...@@ -231,10 +245,15 @@ export function DynamicPanel({
? `${maxHeight}px` ? `${maxHeight}px`
: undefined, : undefined,
} }
: { : sizeConfig.kind === 'auto'
'--panel-height': `${panelSize ? panelSize.height : sizeConfig.height}px`, ? {
'--panel-width': `${panelSize ? panelSize.width : sizeConfig.width}px`, '--panel-height': 'auto',
}), '--panel-width': `${panelSize ? panelSize.width : sizeConfig.width}px`,
}
: {
'--panel-height': `${panelSize ? panelSize.height : sizeConfig.height}px`,
'--panel-width': `${panelSize ? panelSize.width : sizeConfig.width}px`,
}),
} as React.CSSProperties & Record<string, string | number | undefined> } as React.CSSProperties & Record<string, string | number | undefined>
} }
> >
......
...@@ -410,3 +410,15 @@ export type RSCPayload = ...@@ -410,3 +410,15 @@ export type RSCPayload =
| InitialRSCPayload | InitialRSCPayload
| NavigationFlightResponse | NavigationFlightResponse
| ActionFlightResponse | ActionFlightResponse
export type InstantCookie =
// pending (waiting to capture)
| [captured: 0, id: string]
// captured MPA page load
| [captured: 1, id: string, state: null]
// captured SPA navigation (from/to route trees)
| [
captured: 1,
id: string,
state: { from: FlightRouterState; to: FlightRouterState | null },
]
import type { FlightRouterState } from './app-router-types'
export type InstantNavCookieData =
| { state: 'pending' }
| { state: 'mpa' }
| {
state: 'spa'
fromTree: FlightRouterState
toTree: FlightRouterState | null
}
export function parseInstantNavCookieValue(raw: string): InstantNavCookieData {
try {
const parsed = JSON.parse(raw)
if (Array.isArray(parsed) && parsed.length >= 3) {
const rawState = parsed[2]
if (rawState === null) {
return { state: 'mpa' }
}
// SPA capture: rawState is { from, to }
if (typeof rawState === 'object' && rawState !== null) {
const fromTree: FlightRouterState = rawState.from ?? ['', {}]
const toTree: FlightRouterState | null = rawState.to ?? null
return { state: 'spa', fromTree, toTree }
}
return { state: 'spa', fromTree: ['', {}], toTree: null }
}
} catch {}
return { state: 'pending' }
}
'use client'
// import { useSearchParams } from 'next/navigation'
import { use } from 'react'
export default function Page({ searchParams }: PageProps<'/blocking-page'>) {
const params = use(searchParams)
return (
<div>
<p>foo: {params.foo}</p>
<p>Blocking page</p>
</div>
)
}
export default function Loading() {
return <p>Loading...</p>
}
import { Suspense } from 'react'
export const unstable_prefetch = 'force-runtime'
export default async function Page({
searchParams,
}: PageProps<'/blocking-page'>) {
const sp = await searchParams
return (
<div>
<p>Foo param: {sp.foo}</p>
<Suspense fallback="Dynamic placeholder...">
<DynamicData />
</Suspense>
</div>
)
}
async function DynamicData() {
await new Promise((resolve) => setTimeout(resolve, 1_000))
return <p>Dynamic data</p>
}
'use client'
import { useEffect, useState } from 'react'
export function HydrationMarker() {
const [hydrated, setHydrated] = useState(false)
useEffect(() => {
setHydrated(true)
}, [])
return (
<span
data-testid="app-hydration-marker"
data-hydrated={hydrated ? 'true' : 'false'}
style={{
position: 'absolute',
width: 1,
height: 1,
overflow: 'hidden',
opacity: 0,
pointerEvents: 'none',
}}
/>
)
}
import { ReactNode } from 'react' import { ReactNode } from 'react'
export default function Root({ children }: { children: ReactNode }) { export default function Root({ children }: { children: ReactNode }) {
return ( return (
<html> <html>
......
import Link from 'next/link' import Link from 'next/link'
import { HydrationMarker } from './hydration-marker'
export default function Page() { export default function Page() {
return ( return (
<div> <div>
<HydrationMarker />
<h1 data-testid="home-title">Instant Navigation Mode Demo</h1> <h1 data-testid="home-title">Instant Navigation Mode Demo</h1>
<p> <p>
This fixture tests the <strong>Instant Navigation Mode</strong> toggle This fixture tests the <strong>Instant Navigation Mode</strong> toggle
...@@ -43,6 +45,35 @@ export default function Page() { ...@@ -43,6 +45,35 @@ export default function Page() {
> >
Go to target page &rarr; Go to target page &rarr;
</Link> </Link>
<Link
href="/mpa-target"
id="link-to-mpa-target"
style={{
display: 'inline-block',
marginLeft: '0.75rem',
padding: '0.5rem 1rem',
background: '#111',
color: '#fff',
borderRadius: 6,
textDecoration: 'none',
}}
>
Go to MPA target &rarr;
</Link>
{/* <Link
href="/blocking-page?foo=bar"
id="link-to-target"
style={{
display: 'inline-block',
padding: '0.5rem 1rem',
background: '#0070f3',
color: '#fff',
borderRadius: 6,
textDecoration: 'none',
}}
>
Go to blocking page
</Link> */}
</nav> </nav>
</div> </div>
) )
......
...@@ -2,6 +2,9 @@ import { Suspense } from 'react' ...@@ -2,6 +2,9 @@ import { Suspense } from 'react'
import { connection } from 'next/server' import { connection } from 'next/server'
import Link from 'next/link' import Link from 'next/link'
import { ClientFeatures } from './client' import { ClientFeatures } from './client'
import { HydrationMarker } from '../../hydration-marker'
export const unstable_prefetch = 'force-runtime'
function Box({ function Box({
label, label,
...@@ -90,6 +93,7 @@ export default async function TargetPage({ ...@@ -90,6 +93,7 @@ export default async function TargetPage({
}) { }) {
return ( return (
<div> <div>
<HydrationMarker />
<style>{` <style>{`
@keyframes shimmer { @keyframes shimmer {
0% { background-position: -400px 0; } 0% { background-position: -400px 0; }
......
import { ReactNode } from 'react'
export default function Root({ children }: { children: ReactNode }) {
return (
<html>
<body
style={{
fontFamily:
'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',
maxWidth: 900,
margin: '0 auto',
padding: '2rem 1rem',
lineHeight: 1.6,
color: '#111',
}}
>
{children}
</body>
</html>
)
}
import { Suspense } from 'react'
import { connection } from 'next/server'
import Link from 'next/link'
async function DynamicData() {
await connection()
return <p data-testid="mpa-dynamic-content">Dynamic MPA data</p>
}
export default function MpaTargetPage() {
return (
<div>
<h1 data-testid="mpa-target-title">MPA Target Page</h1>
<p>This page lives under a different root layout.</p>
<Suspense fallback={<p data-testid="mpa-dynamic-skeleton">Loading...</p>}>
<DynamicData />
</Suspense>
<Link href="/">Back to home</Link>
</div>
)
}
...@@ -19,6 +19,13 @@ ...@@ -19,6 +19,13 @@
} }
] ]
}, },
"include": ["next-env.d.ts", "**/*.mts", "**/*.ts", "**/*.tsx"], "include": [
"next-env.d.ts",
"**/*.mts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts",
".next/dev/types/**/*.ts"
],
"exclude": ["node_modules", "**/*.test.ts", "**/*.test.tsx"] "exclude": ["node_modules", "**/*.test.ts", "**/*.test.tsx"]
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment