An optical cavity design for a compact wave-undulator based-FEL