Buckets:
| import matchBundle from './match-bundle' | |
| // matches app/:path*.js | |
| const APP_ROUTE_NAME_REGEX = /^app[/\\](.*)$/ | |
| export default function getAppRouteFromEntrypoint(entryFile: string) { | |
| const pagePath = matchBundle(APP_ROUTE_NAME_REGEX, entryFile) | |
| if (typeof pagePath === 'string' && !pagePath) { | |
| return '/' | |
| } | |
| if (!pagePath) { | |
| return null | |
| } | |
| return pagePath | |
| } | |
Xet Storage Details
- Size:
- 380 Bytes
- Xet hash:
- ab22f5e4ad359195ce89d99ebe02098f49d949277819b445e80dc040596cc179
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.