-
Notifications
You must be signed in to change notification settings - Fork 34
Enhancement: use usesSrc
when determining layoutPath
#82
Comments
Hmm, I'd love to get some feedback on this from those who use |
From my personal experience; when using Next.js and putting things under The Next.js docs seem to allude to the fact that this is likely what others do to: https://nextjs.org/docs/advanced-features/src-directory Look forward to hearing what others say |
@jescalan my pull request makes it clear that I am on board with this change 😄 since nextjs makes the assumption that src will hold all source code like pages, I believe we can make that same assumption. |
On a side note, I actually ran into issues setting './src/layout' for layoutPath, that don't occur when it's set to 'src/layout'. getStaticProps couldn't be exported from my layouts when I used the dot-notation |
Sounds reasonable to me - @benedfit would you be interested in submitting a PR for this change? 😀 |
Ah never mind, looks like @johnforte has got it covered! will get this out soon |
I am using |
Thank you so much for adding the ability to have pages under
src/pages
. However, I also have my layouts undersrc/layout
, so I'm currently configuring the plugin like so:Would it possible to automatically assume that
layoutPath
equalssrc/layouts
if the project is usingsrc/pages
?The text was updated successfully, but these errors were encountered: