move config to client and use in posts url