Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
15
node_modules/next/dist/esm/server/get-app-route-from-entrypoint.js
generated
vendored
Normal file
15
node_modules/next/dist/esm/server/get-app-route-from-entrypoint.js
generated
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import matchBundle from './match-bundle';
|
||||
// matches app/:path*.js
|
||||
const APP_ROUTE_NAME_REGEX = /^app[/\\](.*)$/;
|
||||
export default function getAppRouteFromEntrypoint(entryFile) {
|
||||
const pagePath = matchBundle(APP_ROUTE_NAME_REGEX, entryFile);
|
||||
if (typeof pagePath === 'string' && !pagePath) {
|
||||
return '/';
|
||||
}
|
||||
if (!pagePath) {
|
||||
return null;
|
||||
}
|
||||
return pagePath;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=get-app-route-from-entrypoint.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue