Skip to content

fix(nextjs): Match folder paths with trailing separator#8615

Merged
lforst merged 1 commit intodevelopfrom
lforst-stricter-nextjs-loader-matcher
Jul 24, 2023
Merged

fix(nextjs): Match folder paths with trailing separator#8615
lforst merged 1 commit intodevelopfrom
lforst-stricter-nextjs-loader-matcher

Conversation

@lforst
Copy link
Contributor

@lforst lforst commented Jul 24, 2023

Fixes #5978

We were matching for paths that started with whatever/pages, however that is bad if people have folders named something like whatever/pages-components so with this PR we will match with a trailing (OS-dependent) slash to only match full folders.

@lforst lforst merged commit 07b9d2e into develop Jul 24, 2023
@lforst lforst deleted the lforst-stricter-nextjs-loader-matcher branch July 24, 2023 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Collecting page data ...TypeError: Cannot read property 'getInitialProps' of undefined

2 participants