Add proper routing and fix issues with it. Add default serve file env.