Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

feat: add auth token to preview link #2174

Merged
1 commit merged into from Oct 4, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/pages/academy/blog/posts/preview/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const BlogPreview = () => {
}

const fetchBlogPreview = async () => {
const url = `${end_point_url}${id}?fields=*.*.*.*.*`
const url = `${end_point_url}${id}?access_token=${process.env.DIRECTUS_AUTH_TOKEN}&fields=*.*.*.*.*`
const res = await fetch(url, { cache: 'no-store' })
return await res.json()
}
Expand Down