fix endpoint for deploy

- move resize call to pre-deploy rather than post-deploy