Any longer than that and I would recommend freezing your pasta.
Although you can cook with your fresh pasta right away, you can also store it in an airtight container in the fridge for 24 hours. Any longer than that and I would recommend freezing your pasta. You can also just make the pasta dough ahead and store it in the fridge overnight, then let it come to room temperature the next day before rolling and cutting.