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

core: Prerendering #20

Merged
merged 2 commits into from
Aug 25, 2024
Merged

core: Prerendering #20

merged 2 commits into from
Aug 25, 2024

Conversation

al
Copy link
Owner

@al al commented Jul 25, 2024

Integrate prerendering of pages into the standard build process (i.e. pnpm build) using vite-plugin-prerender.

The prerendered pages will be output to the dist/ directory by default.

NOTES

LINKS

@al al added the wip Work in progress label Jul 25, 2024
Integrate prerendering of pages into the standard build process (i.e.
`pnpm build`) using vite-plugin-prerender.

The prerendered pages will be output to the dist/ directory by default.

NOTES

- On Apple devices using Apple Silicon it may be necessary to set the
  `PUPPETEER_EXECUTABLE_PATH` environment variable and use it to point
  to a working installation of a version of Chromium that is compatible
  with installed version of Puppeteer. The Puppeteer post-install
  scripts ought to install such a version of Chromium in ~/.cache. Use
  a .env.production.local file to do this.

LINKS

- https://github.com/Rudeus3Greyrat/vite-plugin-prerender
- https://github.com/puppeteer/puppeteer
@al al force-pushed the core/prerendering branch from e8831d1 to 796bc80 Compare August 21, 2024 19:43
@al
Copy link
Owner Author

al commented Aug 21, 2024

Rebased and forced.

@al al force-pushed the core/prerendering branch 5 times, most recently from ebb33b0 to b769abe Compare August 25, 2024 22:23
Fix an issue in the "Deploy to GitHub Pages" action by adding a step to
explicitly install Chromium.

The prerendering step using Puppeteer was hanging indefinitely. There
may have been a problem with the automatic downloading of Chromium, or
it may have been an incompatability (as previously seen when developing
on Apple silicon). Either way, manually installing Chromium via apt
appears to resolve the issue.
@al al force-pushed the core/prerendering branch from b769abe to 7ac5bf0 Compare August 25, 2024 22:30
@al al removed the wip Work in progress label Aug 25, 2024
@al al merged commit 260451f into main Aug 25, 2024
3 checks passed
@al al deleted the core/prerendering branch August 25, 2024 22:38
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