@@ -40,6 +40,18 @@ describe('app-dir static/dynamic handling', () => {
4040 }
4141 } )
4242
43+ if ( ! process . env . __NEXT_EXPERIMENTAL_PPR ) {
44+ it ( 'should respond correctly for dynamic route with dynamicParams false in layout' , async ( ) => {
45+ const res = await next . fetch ( '/partial-params-false/en/another' )
46+ expect ( res . status ) . toBe ( 200 )
47+ } )
48+
49+ it ( 'should respond correctly for partially dynamic route with dynamicParams false in layout' , async ( ) => {
50+ const res = await next . fetch ( '/partial-params-false/en/static' )
51+ expect ( res . status ) . toBe ( 200 )
52+ } )
53+ }
54+
4355 it ( 'should use auto no cache when no fetch config' , async ( ) => {
4456 const res = await next . fetch ( '/no-config-fetch' )
4557 expect ( res . status ) . toBe ( 200 )
@@ -877,6 +889,10 @@ describe('app-dir static/dynamic handling', () => {
877889 "partial-gen-params-no-additional-slug/fr/first.rsc",
878890 "partial-gen-params-no-additional-slug/fr/second.html",
879891 "partial-gen-params-no-additional-slug/fr/second.rsc",
892+ "partial-params-false/en/static.html",
893+ "partial-params-false/en/static.rsc",
894+ "partial-params-false/fr/static.html",
895+ "partial-params-false/fr/static.rsc",
880896 "prerendered-not-found/first.html",
881897 "prerendered-not-found/first.rsc",
882898 "prerendered-not-found/second.html",
@@ -1822,6 +1838,54 @@ describe('app-dir static/dynamic handling', () => {
18221838 "initialRevalidateSeconds": false,
18231839 "srcRoute": "/partial-gen-params-no-additional-slug/[lang]/[slug]",
18241840 },
1841+ "/partial-params-false/en/static": {
1842+ "allowHeader": [
1843+ "host",
1844+ "x-matched-path",
1845+ "x-prerender-revalidate",
1846+ "x-prerender-revalidate-if-generated",
1847+ "x-next-revalidated-tags",
1848+ "x-next-revalidate-tag-token",
1849+ ],
1850+ "dataRoute": "/partial-params-false/en/static.rsc",
1851+ "experimentalBypassFor": [
1852+ {
1853+ "key": "Next-Action",
1854+ "type": "header",
1855+ },
1856+ {
1857+ "key": "content-type",
1858+ "type": "header",
1859+ "value": "multipart/form-data;.*",
1860+ },
1861+ ],
1862+ "initialRevalidateSeconds": false,
1863+ "srcRoute": "/partial-params-false/[locale]/static",
1864+ },
1865+ "/partial-params-false/fr/static": {
1866+ "allowHeader": [
1867+ "host",
1868+ "x-matched-path",
1869+ "x-prerender-revalidate",
1870+ "x-prerender-revalidate-if-generated",
1871+ "x-next-revalidated-tags",
1872+ "x-next-revalidate-tag-token",
1873+ ],
1874+ "dataRoute": "/partial-params-false/fr/static.rsc",
1875+ "experimentalBypassFor": [
1876+ {
1877+ "key": "Next-Action",
1878+ "type": "header",
1879+ },
1880+ {
1881+ "key": "content-type",
1882+ "type": "header",
1883+ "value": "multipart/form-data;.*",
1884+ },
1885+ ],
1886+ "initialRevalidateSeconds": false,
1887+ "srcRoute": "/partial-params-false/[locale]/static",
1888+ },
18251889 "/prerendered-not-found/first": {
18261890 "allowHeader": [
18271891 "host",
@@ -2580,6 +2644,31 @@ describe('app-dir static/dynamic handling', () => {
25802644 "fallback": false,
25812645 "routeRegex": "^\\/partial\\-gen\\-params\\-no\\-additional\\-slug\\/([^\\/]+?)\\/([^\\/]+?)(?:\\/)?$",
25822646 },
2647+ "/partial-params-false/[locale]/static": {
2648+ "allowHeader": [
2649+ "host",
2650+ "x-matched-path",
2651+ "x-prerender-revalidate",
2652+ "x-prerender-revalidate-if-generated",
2653+ "x-next-revalidated-tags",
2654+ "x-next-revalidate-tag-token",
2655+ ],
2656+ "dataRoute": "/partial-params-false/[locale]/static.rsc",
2657+ "dataRouteRegex": "^\\/partial\\-params\\-false\\/([^\\/]+?)\\/static\\.rsc$",
2658+ "experimentalBypassFor": [
2659+ {
2660+ "key": "Next-Action",
2661+ "type": "header",
2662+ },
2663+ {
2664+ "key": "content-type",
2665+ "type": "header",
2666+ "value": "multipart/form-data;.*",
2667+ },
2668+ ],
2669+ "fallback": false,
2670+ "routeRegex": "^\\/partial\\-params\\-false\\/([^\\/]+?)\\/static(?:\\/)?$",
2671+ },
25832672 "/prerendered-not-found/[slug]": {
25842673 "allowHeader": [
25852674 "host",
0 commit comments