Strapi Preview Implementation Test

1. Test Preview Route (Valid Secret)

This should redirect to the homepage with preview parameters:

Test Valid Preview

2. Test Preview Route (Invalid Secret)

This should show an unauthorized page:

Test Invalid Preview

3. Test Preview Mode Directly

This should show the homepage with preview banner:

Test Preview Mode

4. Test Article Preview (if you have articles)

This should test dynamic route preview:

Test Article Preview

Expected Strapi Configuration

For reference, your Strapi config should generate URLs like this:

https://takerofnotes.com/preview?secret=preview-secret-key-change-this-in-production&path=/articles/my-article&status=draft&documentId=123&uid=api::article.article

Environment Variables Check

Make sure these are set in your .env file:

VITE_CLIENT_URL=https://takerofnotes.com
VITE_PREVIEW_SECRET=preview-secret-key-change-this-in-production

And in your Strapi .env file:

CLIENT_URL=https://takerofnotes.com
PREVIEW_SECRET=preview-secret-key-change-this-in-production