Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add prerender.io to Static doc #491

Merged
merged 9 commits into from
Jan 28, 2025
Prev Previous commit
Next Next commit
Update content/doc/applications/static/_index.md
Co-authored-by: Pierre L. / Peyo <[email protected]>
  • Loading branch information
Kirbeerus and PLhuillery authored Jan 22, 2025
commit d5cabb770c1a9790fa97063e49cda97ef7c1b894
2 changes: 1 addition & 1 deletion content/doc/applications/static/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,18 +66,18 @@
RewriteRule ^ /index.html
```

## Prerendering with Prerender.io

Check failure on line 69 in content/doc/applications/static/_index.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/doc/applications/static/_index.md#L69

[Vale.Spelling] Did you really mean 'Prerendering'?
Raw output
{"message": "[Vale.Spelling] Did you really mean 'Prerendering'?", "location": {"path": "content/doc/applications/static/_index.md", "range": {"start": {"line": 69, "column": 4}}}, "severity": "ERROR"}

When you use a SPA framework, you are using Client side rendering.
One of the problem of this method is poor SEO as search engine crawler have more difficulty reading the content of this type of application.

Check notice on line 72 in content/doc/applications/static/_index.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/doc/applications/static/_index.md#L72

[Google.Acronyms] Spell out 'SEO', if it's unfamiliar to the audience.
Raw output
{"message": "[Google.Acronyms] Spell out 'SEO', if it's unfamiliar to the audience.", "location": {"path": "content/doc/applications/static/_index.md", "range": {"start": {"line": 72, "column": 43}}}, "severity": "INFO"}
To avoid this problem, you can try to prerender your application.

Check failure on line 73 in content/doc/applications/static/_index.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/doc/applications/static/_index.md#L73

[Vale.Spelling] Did you really mean 'prerender'?
Raw output
{"message": "[Vale.Spelling] Did you really mean 'prerender'?", "location": {"path": "content/doc/applications/static/_index.md", "range": {"start": {"line": 73, "column": 39}}}, "severity": "ERROR"}

If you want to Prerender your application on Clever Cloud, one solution is to use [Prerender.io](https://prerender.io/).

Check failure on line 75 in content/doc/applications/static/_index.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/doc/applications/static/_index.md#L75

[Vale.Spelling] Did you really mean 'Prerender'?
Raw output
{"message": "[Vale.Spelling] Did you really mean 'Prerender'?", "location": {"path": "content/doc/applications/static/_index.md", "range": {"start": {"line": 75, "column": 16}}}, "severity": "ERROR"}
To use it with our static applications, you need a `.htaccess` file like this at the root of your project:

Check warning on line 76 in content/doc/applications/static/_index.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/doc/applications/static/_index.md#L76

[Google.We] Try to avoid using first-person plural like 'our'.
Raw output
{"message": "[Google.We] Try to avoid using first-person plural like 'our'.", "location": {"path": "content/doc/applications/static/_index.md", "range": {"start": {"line": 76, "column": 16}}}, "severity": "WARNING"}

```ApacheConf
<IfModule mod_headers.c>
RequestHeader set X-Prerender-Token "<YOUR_TOKEN>"
RequestHeader set X-Prerender-Token "<PRERENDER_TOKEN>"
RequestHeader set X-Prerender-Version "[email protected]"
</IfModule>

Expand Down
Loading