-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into diagnostic-network-issue-command-curl
- Loading branch information
Showing
7 changed files
with
81 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
title: "Elixir 1.18 is available" | ||
date: 2025-01-22 | ||
tags: | ||
- images | ||
- update | ||
authors: | ||
- name: David Legrand | ||
link: https://github.com/davlgd | ||
image: https://github.com/davlgd.png?size=40 | ||
description: Elixir 1.13 is now end-of-life | ||
excludeSearch: true | ||
--- | ||
|
||
We deployed an updated Elixir image with no impact for our users. It uses `1.18` release by default and Linux Kernel `6.12.9`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,6 +66,36 @@ RewriteRule ^ - [L] | |
RewriteRule ^ /index.html | ||
``` | ||
|
||
## Prerendering with Prerender.io | ||
|
||
When you use a SPA framework, you are using Client side rendering. | ||
One of the problem with this method is a poor SEO as search engine crawlers have more difficulty reading the content of this type of application. | ||
To minimize this issue, prerendering can be a solution. | ||
|
||
If you want to Prerender your application on Clever Cloud, one solution is to use [Prerender.io](https://prerender.io/). | ||
To use it with our static applications, you need a `.htaccess` file like this at the root of your project: | ||
|
||
```ApacheConf | ||
<IfModule mod_headers.c> | ||
RequestHeader set X-Prerender-Token "<PRERENDER_TOKEN>" | ||
RequestHeader set X-Prerender-Version "[email protected]" | ||
</IfModule> | ||
<IfModule mod_rewrite.c> | ||
RewriteEngine On | ||
<IfModule mod_proxy_http.c> | ||
RewriteCond %{HTTP_USER_AGENT} googlebot|bingbot|yandex|baiduspider|facebookexternalhit|twitterbot|rogerbot|linkedinbot|embedly|quora\ link\ preview|showyoubot|outbrain|pinterest\/0\.|pinterestbot|slackbot|vkShare|W3C_Validator|whatsapp|redditbot|applebot|flipboard|tumblr|bitlybot|skypeuripreview|nuzzel|discordbot|google\ page\ speed|qwantify|bitrix\ link\ preview|xing-contenttabreceiver|google-inspectiontool|chrome-lighthouse|telegrambot [NC,OR] | ||
RewriteCond %{QUERY_STRING} _escaped_fragment_ | ||
RewriteCond %{REQUEST_URI} ^(?!.*?(\.js|\.css|\.xml|\.less|\.png|\.jpg|\.jpeg|\.gif|\.pdf|\.doc|\.txt|\.ico|\.rss|\.zip|\.mp3|\.rar|\.exe|\.wmv|\.doc|\.avi|\.ppt|\.mpg|\.mpeg|\.tif|\.wav|\.mov|\.psd|\.ai|\.xls|\.mp4|\.m4a|\.swf|\.dat|\.dmg|\.iso|\.flv|\.m4v|\.torrent|\.ttf|\.woff|\.svg)) | ||
RewriteRule ^(index\.html|index\.php)?(.*) http://service.prerender.io/%{REQUEST_SCHEME}://%{HTTP_HOST}$2 [P,END] | ||
</IfModule> | ||
</IfModule> | ||
``` | ||
You can find your `PRERENDER_TOKEN` on your [Prerender.io account](https://prerender.io/). | ||
|
||
You can verify your configuration work using [this guide](https://docs.prerender.io/docs/how-to-test-your-site-after-you-have-successfully-validated-your-prerender-integration). | ||
## Apache Configuration with `CC_WEBROOT` | ||
|
||
If you set the `CC_WEBROOT = /<web-folder>` environment variable, make sure you put your `.htaccess` file at the root of your `/<web-folder>`. This is where Apache will look for directives when you deploy an application in a Static runtime. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters