MCPcopy
hub / github.com/vercel/next.js / getCacheFile

Function getCacheFile

test/integration/preview-fallback/test/index.test.ts:25–27  ·  view source on GitHub ↗
(path = '')

Source from the content-addressed store, hash-verified

23let previewCookie
24
25const getCacheFile = (path = '') => {
26 return join(appDir, '.next', 'server', 'pages', path)
27}
28
29function runTests(isDev: boolean) {
30 it('should get preview cookie correctly', async () => {

Callers 1

runTestsFunction · 0.85

Calls 1

joinFunction · 0.90

Tested by

no test coverage detected