-
-
Notifications
You must be signed in to change notification settings - Fork 842
react snap
Eray Alkış edited this page Apr 28, 2022
·
1 revision
For ReactPlay's dynamic meta tags to work correctly, we use react-snap to pre-render each route available. react-snap goes through all of the specified routes, runs the JavaScript code for the page, and generates a static HTML page for each of them.
You can find the configuration for this package in package.json.
"reactSnap": {
"puppeteerArgs": [ // Configuration for puppeteer, a Chromium API that allows you to interact with a webpage
"--no-sandbox", // We tell puppeteer to disable sandboxing so that ReactPlay can run on Vercel
"--disable-setuid-sandbox"
]
}
ReactPlay - The MIT License (MIT) Copyright ©2023 is an open-source project made with ❤️ by Tapas Adhikary and friends.