feat: show draft posts and products on testing and staging
All checks were successful
Build & Deploy / 🔍 Prepare (push) Successful in 8s
Build & Deploy / 🧪 QA (push) Successful in 1m44s
Build & Deploy / 🏗️ Build (push) Successful in 3m55s
Build & Deploy / 🚀 Deploy (push) Successful in 19s
Build & Deploy / 🧪 Post-Deploy Verification (push) Successful in 33m41s
Build & Deploy / ⚡ Performance & Accessibility (push) Successful in 8m15s
Build & Deploy / 🔔 Notify (push) Successful in 2s

This commit is contained in:
2026-02-26 02:59:30 +01:00
parent 87b2624ab3
commit 0487bd8ebe
3 changed files with 3 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ export const Pages: CollectionConfig = {
}, },
access: { access: {
read: ({ req: { user } }) => { read: ({ req: { user } }) => {
if (process.env.NODE_ENV === 'development') { if (process.env.NODE_ENV === 'development' || process.env.TARGET === 'staging') {
return true; return true;
} }
if (user) { if (user) {

View File

@@ -23,7 +23,7 @@ export const Posts: CollectionConfig = {
}, },
access: { access: {
read: ({ req: { user } }) => { read: ({ req: { user } }) => {
if (process.env.NODE_ENV === 'development') { if (process.env.NODE_ENV === 'development' || process.env.TARGET === 'staging') {
return true; return true;
} }
if (user) { if (user) {

View File

@@ -24,7 +24,7 @@ export const Products: CollectionConfig = {
}, },
access: { access: {
read: ({ req: { user } }) => { read: ({ req: { user } }) => {
if (process.env.NODE_ENV === 'development') { if (process.env.NODE_ENV === 'development' || process.env.TARGET === 'staging') {
return true; return true;
} }
if (user) { if (user) {