/
githubmirror
/
next.js
Обзор
Документация
Войти
/
githubmirror
/
next.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
test/e2e/prerender-fallback-encoding/paths.js
22 строки
819 B
Tim Neutkens
Convert test/integration to isolated tests (#93247)
11 май 2026, 14:55
Не верифицирован
11 май 2026, 14:55
8141dcf
Код
Авторство
О чём код?
export default function getPaths(pathPrefix) { return [ // this will get turned into %2Fmy-post%2F { params: { slug: '/my-post/' } }, // this will get turned into %252Fmy-post%252F { params: { slug: '%2Fmy-post%2F' } }, // this will be passed through { params: { slug: '+my-post+' } }, // this will get turned into %3Fmy-post%3F { params: { slug: '?my-post?' } }, // ampersand signs { params: { slug: '&my-post&' } }, // non-ascii characters { params: { slug: '商業日語' } }, { params: { slug: ' my-post ' } }, { params: { slug: encodeURIComponent('商業日語') } }, `${pathPrefix}/%2Fsecond-post%2F`, `${pathPrefix}/%2Bsecond-post%2B`, `${pathPrefix}/%26second-post%26`, `${pathPrefix}/mixed-${encodeURIComponent('商業日語')}`, ] }