I try to npm run build .
Build error occurred Error: getStaticPaths is required for dynamic SSG pages and is missing for '/blogs/[post]'.
my code:
function post (props){
   console.log(props);
   return(
       <div>
           test
       </div>
   )
}
export const getStaticProps = async(post)=>{
   const blogPost =  await axios({
       method: 'get',
       url: `api url=${post}`});
   return{
       props:{params:blogPost}
   }
}
export default withRouter(post);
 
     
    