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

Prerender shortcuts page #1

Merged
merged 5 commits into from
Mar 15, 2023
Merged

Prerender shortcuts page #1

merged 5 commits into from
Mar 15, 2023

Conversation

bozzhik
Copy link
Collaborator

@bozzhik bozzhik commented Mar 15, 2023

I was faced with the need to have pre-rendered content for better SEO, React does not provide this opportunity, and SSR is impossible due to the development of an information service within Server Less.

The solution for me was a Python script, which is from a file hotkeys.json takes the data and generates HTML code from it. Now, when the site loads, there is already content there (just with opacity 0) and then it is deleted and the react renders the component

In this regard, in the package.json was added new command yarn render to launch a js file, which launches a python file, which in turn renders the content in html file

@bozzhik bozzhik merged commit f709179 into main Mar 15, 2023
@bozzhik bozzhik deleted the prerender-shortcuts-page branch March 15, 2023 14:42
@bozzhik bozzhik restored the prerender-shortcuts-page branch March 15, 2023 14:42
@bozzhik bozzhik deleted the prerender-shortcuts-page branch June 16, 2023 12:46
@bozzhik
Copy link
Collaborator Author

bozzhik commented Aug 11, 2023

good job 🤍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant