Buckets:
| import type { FileInfo } from 'jscodeshift' | |
| import path from 'node:path' | |
| export function isNextConfigFile(file: FileInfo): boolean { | |
| const parsed = path.parse(file.path || '/') | |
| return ( | |
| parsed.base === 'next.config.js' || | |
| parsed.base === 'next.config.ts' || | |
| parsed.base === 'next.config.mjs' || | |
| parsed.base === 'next.config.cjs' | |
| ) | |
| } | |
Xet Storage Details
- Size:
- 356 Bytes
- Xet hash:
- a886b17680481b05d83bd41fa599282242ebb68c41d37ad81d17bb90966565c4
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.