# Moving files to src directory on Nextjs 14

**URL:** <https://community.prismic.io/t/moving-files-to-src-directory-on-nextjs-14/14545>\
**Category:** Developing with Prismic\
**Tags:** nextjs\
**Created:** [November 18, 2023, 3:47pm UTC](https://community.prismic.io/t/moving-files-to-src-directory-on-nextjs-14/14545 "2023-11-18T15:47:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![magallen.fc](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/magallen.fc/32/153_2.png) [@magallen.fc](https://community.prismic.io/u/magallen.fc)\
**Post date:** [November 18, 2023, 3:47pm UTC](https://community.prismic.io/t/moving-files-to-src-directory-on-nextjs-14/14545/1 "2023-11-18T15:47:33Z")

</div>

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.

 ![Screenshot 2023-11-18 at 11.44.27 PM](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/2X/a/a1a3ced85b56c04cb77f0adda390bd8b3532e44e.jpeg)

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.

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [November 20, 2023, 10:18am UTC](https://community.prismic.io/t/moving-files-to-src-directory-on-nextjs-14/14545/3 "2023-11-20T10:18:16Z")

</div>

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:

> **[GitHub - prismicio-community/nextjs-starter-prismic-multi-page: Next.js and...](https://github.com/prismicio-community/nextjs-starter-prismic-multi-page/tree/master)**
>
> master

Let me know if this works,  
Thanks.

---

<div class="post-metadata">

**Author:** ![magallen.fc](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/magallen.fc/32/153_2.png) [@magallen.fc](https://community.prismic.io/u/magallen.fc)\
**Post date:** [November 20, 2023, 1:18pm UTC](https://community.prismic.io/t/moving-files-to-src-directory-on-nextjs-14/14545/4 "2023-11-20T13:18:22Z")

</div>

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