Fix: disable Tina CMS during build to avoid
Some checks failed
Deploy to Easypanel / deploy (push) Has been cancelled
Some checks failed
Deploy to Easypanel / deploy (push) Has been cancelled
clientId/token error
This commit is contained in:
@@ -6,11 +6,15 @@ import path from 'path'
|
|||||||
|
|
||||||
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
||||||
|
|
||||||
|
// Only enable Tina CMS when TINA_TOKEN is provided AND we're not in build mode
|
||||||
|
const isBuild = process.argv.includes('build')
|
||||||
|
const tinaEnabled = !isBuild && !!process.env.TINA_TOKEN
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
site: 'https://example.com',
|
site: 'https://example.com',
|
||||||
integrations: [
|
integrations: [
|
||||||
tina({
|
tina({
|
||||||
enabled: !!process.env.TINA_TOKEN,
|
enabled: tinaEnabled,
|
||||||
sidebar: {
|
sidebar: {
|
||||||
partials: [],
|
partials: [],
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user