title: Next.js static site generation, why is getStaticProps params empty?
body: <h1>Intro</h1>
  <p>I'm building an app with next.js. Using its static site generation. For some reason the params object in <code>getStaticProps</code> is empty. I've read the examples and docks for the last few hours and cannot see why the cause. Perhaps someone with more next experience can spot the problem.</p>
  <h1>/pages/projects/[id].js</h1>
  <pre class="lang-js prettyprint-override"><code>export async function getStaticPaths() {
    return {
      paths: [
        { params: { id: '1' } },
      ],
      fallback: false
    };
  }
  
  
  export async function getStaticProps({params}) {
    console.log(params); // params is just an empty object
    const { data: projectData } = await axios(`${CMS_URL}/projects/${params.id}`);
    console.log(projectData);
    return {
      props: {
        ...projectData,
      }
    };
  }
  
  export default function ProjectDetailPage(props) { ...
  </code></pre>
  <h1>next.config.js</h1>
  <pre class="lang-js prettyprint-override"><code>...
  exportPathMap: async () =&gt; {
      const paths = {
        '/': { page: '/' },
        '/blog': { page: '/overview' },
      };
  
      const { data: projectsData } = await axios(`${apiUrl}/projects`);
      projectsData.forEach(project =&gt; {
        paths[`/projects/${project.id}`] = { page: '/projects/[id]', query: { id: project.id } };
      });
  
      console.log(paths);
      /*
        {
          '/': { page: '/' },
          '/blog': { page: '/overview' },
          '/projects/1': { page: '/projects/[id]', query: { id: 1 } }
        }
       */
  
      return paths;
    }
  ...
  </code></pre>
  <p><a href="https://i.stack.imgur.com/LfBL2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LfBL2.png" alt="enter image description here" /></a></p>
  <h1>Question</h1>
  <p>I've added the correct folder structure, and <code>exportPathMap</code>. Also added the static path and props to my component. I cant see why the params object is empty. Can you tell me why it is not working?</p>