add middleware for deploying without /