modular: remove serve-static. converted if to switch statement for cranking up different server envs