Create a list of Keywords by analyzing your competitors in your niche. My preferred website is Semrush for this. Then to start off with prioritize the long tail keywords which are easier to rank for and optimize the page using Yoast SEO as a guide (or something similar)
SEO generally takes time to gradually improve so it's best to optimize as soon as possible. However, you need the pages to be user friendly and have other content aswell as words. If it's ecommerce, pages need products to rank well also.
Once you identify primary keywords and the unique values your product is offering, start SEO without wasting a sec. Do not wait till your product is out.