diff --git a/README.md b/README.md index b7c46d8..f4952dd 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ $ php composer.phar require zfr/zfr-prerender:3.* 2. Check to make sure we aren't requesting a resource (js, css, etc...) 3. (optional) Check to make sure the url is in the whitelist 4. (optional) Check to make sure the url isn't in the blacklist -2. Make a `GET` request to the [prerender service](https://github.com/collectiveip/prerender) (PhantomJS server) for +2. Make a `GET` request to the [prerender service](https://github.com/prerender/prerender) (PhantomJS server) for the page's prerendered HTML 3. Return that HTML to the crawler @@ -39,8 +39,8 @@ ZfrPrerender comes with sane default, but you can customize the module by copyin #### Prerender URL -By default, ZfrPrerender uses the Prerender.io service deployed at `http://prerender.herokuapp.com`. However, you -may want to [deploy it on your own server](https://github.com/collectiveip/prerender#deploying-your-own). To that +By default, ZfrPrerender uses the Prerender.io service deployed at `http://service.prerender.io`. However, you +may want to [deploy it on your own server](https://github.com/prerender/prerender#deploying-your-own). To that extent, you can customize ZfrPrerender to use your server using the following configuration: ```php diff --git a/config/module.config.php b/config/module.config.php index 9791812..3567bb6 100644 --- a/config/module.config.php +++ b/config/module.config.php @@ -26,7 +26,7 @@ 'zfr_prerender' => [ // Prerender service URL - 'prerender_url' => 'http://prerender.herokuapp.com', + 'prerender_url' => 'http://service.prerender.io', // Some widely used crawler user agents (Google Bot, Yahoo and BingBot are not in this list because // we support _escaped_fragment_ and want to ensure people aren't penalized for cloaking). diff --git a/tests/ZfrPrerenderTest/Factory/ModuleOptionsFactoryTest.php b/tests/ZfrPrerenderTest/Factory/ModuleOptionsFactoryTest.php index 2952beb..82db381 100644 --- a/tests/ZfrPrerenderTest/Factory/ModuleOptionsFactoryTest.php +++ b/tests/ZfrPrerenderTest/Factory/ModuleOptionsFactoryTest.php @@ -41,7 +41,7 @@ public function testCanCreateOptions() ]; $this->assertInstanceOf('ZfrPrerender\Options\ModuleOptions', $options); - $this->assertEquals('http://prerender.herokuapp.com', $options->getPrerenderUrl()); + $this->assertEquals('http://service.prerender.io', $options->getPrerenderUrl()); $this->assertEquals($expectedCrawlerUserAgents, $options->getCrawlerUserAgents()); $this->assertEmpty($options->getWhitelistUrls()); $this->assertEmpty($options->getBlacklistUrls());