diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 6d677c1f..b4b38fcc 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -117,20 +117,9 @@ jobs: run: | rclone sync \ --fast-list \ - --exclude ".next/BUILD_ID" \ - --exclude ".next/cache/**" \ --exclude "node_modules/**" \ --progress \ - examples/stackwright-docs/.next/ \ - "R2:${{ steps.bucket.outputs.bucket }}/" - - - name: Sync public assets to R2 - run: | - rclone copy \ - --fast-list \ - --exclude "node_modules/**" \ - --progress \ - examples/stackwright-docs/public/ \ + examples/stackwright-docs/out/ \ "R2:${{ steps.bucket.outputs.bucket }}/" - name: Deployment summary diff --git a/examples/stackwright-docs/next.config.js b/examples/stackwright-docs/next.config.js index 6bc13d83..0e5f56da 100644 --- a/examples/stackwright-docs/next.config.js +++ b/examples/stackwright-docs/next.config.js @@ -7,4 +7,10 @@ module.exports = createStackwrightNextConfig({ "@stackwright/themes", "@stackwright/types", ], + // Enable static export for R2/CDN hosting + output: 'export', + // Images must be unoptimized for static export + images: { + unoptimized: true, + }, });