Moving files to src directory on Nextjs 14

Hi, everything works fine when having no src directory on my project. After I created a src directory and moved the files inside, running the slicemachine won't detect my created custom types and pages.

Here's my current project structure.

and here's what i see on the slicemachine local server

Welcome to Slice Machine. Your journey starts with your first page type — the model that you will use to create pages for your website.

I don't know if there's something i missed.

Hi @magallen.fc ,

I believe the customtypes folder needs to be in the base of root of your project like in this sample project here:

Let me know if this works,
Thanks.

Yes, I found out that too earlier after creating a fresh Nextjs project with src directory. Thanks!

1 Like