rsnext/test/e2e/app-dir/app-static/app-static-custom-handler.test.ts
Zack Tanner 9ea6bc4bcb
fix: custom incremental cache handlers should work when transpiled (#54472)
This fixes a `CurCacheHandler is not a constructor` error when the custom cache handler path is transpiled from ESM -> CJS (resulting in the handler being attached to the `default` property on the module's exports)

Closes NEXT-1558
Fixes #54453
2023-08-24 03:48:30 +00:00

2 lines
102 B
TypeScript

process.env.CUSTOM_CACHE_HANDLER = require.resolve('./cache-handler.js')
require('./app-static.test')