I have built a website using [next.js](https://nextjs.org/docs/getting-started)
The guide says that next.js has Two forms of Pre-rendering:

> 
> Static Generation (Recommended): The HTML is generated at build time and will be reused on each request.
> Server-side Rendering: The HTML is generated on each request.
> 
> 
> 

If I am using Static Generation, an let say in my page I have the following code:

```
export async function getStaticProps({ params }) {
    const fetchedData = await axios.get(API_URL);

    return {
        props: {
            fetchedData
        }
    }
}

```

Does this mean that this function will be executed only once at the build (when I am deploying the website) and then it means that the data that will be presented on the website will be old data from the date of the deployment?
And if so, how can I force next.js to rebuild this page every day?