You can follow any of the ways to pay back the finance. These are:
Repayment in full once development is complete
Refinancing to a long-term loan in case you want to rent out
Exiting with a bridging loan to keep profits intact by paying less