Skip to content

Commit

Permalink
Fix broken github pages deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
AdiRishi committed Feb 9, 2024
1 parent f3cad74 commit 2e15da8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/docs-pr-preview.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy Docs
name: Deploy Docs Preview

on:
workflow_run:
Expand All @@ -8,6 +8,10 @@ on:
pull_request:
branches: [master]

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCS_CLOUDFLARE_DEPLOYMENT: true

jobs:
check:
name: Build and deploy Docs
Expand Down
7 changes: 6 additions & 1 deletion docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
import { defineConfig } from 'vitepress';
import projectPackageJson from '../../package.json';

const isCloudflareDeployment = process.env.DOCS_CLOUDFLARE_DEPLOYMENT === 'true';

// https://vitepress.dev/reference/site-config
export default defineConfig({
title: 'Turborepo Remote Cache',
description:
'An implementation of the turborepo-remote-cache server custom made for Cloudflare Workers',
sitemap: {
hostname: 'https://cloudflare.turborepo-remote-cache.dev/',
hostname: isCloudflareDeployment
? 'https://cloudflare.turborepo-remote-cache.dev/'
: 'https://adirishi.github.io/turborepo-remote-cache-cloudflare/',
},
base: isCloudflareDeployment ? undefined : '/turborepo-remote-cache-cloudflare/',
cleanUrls: true,
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
Expand Down

0 comments on commit 2e15da8

Please sign in to comment.