strapi / strapi-starter-gatsby-corporate

strapi-starter-gatsby-corporate-git-main-strapijs.vercel.app
MIT License
27 stars 8 forks source link

Preview Mode #11

Closed markkaylor closed 3 years ago

markkaylor commented 3 years ago

This solution tries to imitate the experience found on https://github.com/strapi/strapi-starter-next-corporate

markkaylor commented 3 years ago

Bummer, should have tested in other browsers. I'll take a look. It's not exactly the same, sorry should have sent it. It's also in the preview.js file but here you go:

/**
 * You can preview pages with URLs like this:
 * http://localhost:8000/preview/<slug>?secret=<preview-secret>
 * where <preview-secret> is the PREVIEW_SECRET variable defined in your .env config
 * and <slug> is the slug you entered in Strapi for your page
 */
markkaylor commented 3 years ago

@remidej added secure and sameSite option https://www.npmjs.com/package/react-cookie

markkaylor commented 3 years ago

https://user-images.githubusercontent.com/26598053/113393310-c6864d80-9396-11eb-9020-23d0dac97315.mov