Skip to content

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"]}

Clone this wiki locally