Skip to content

Vercel doesn't cache Docusaurus Build Caches #11172

@anaclumos

Description

@anaclumos

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of Docusaurus.
  • I have tried the npm run clear or yarn clear command.
  • I have tried rm -rf node_modules yarn.lock package-lock.json and re-installing packages.
  • I have tried creating a repro with https://new.docusaurus.io.
  • I have read the console error message carefully (if applicable).

Description

I've noticed that Vercel doesn't cache Docusaurus's .docusaurus folder or build output dir.

Image

This is more of a Vercel problem, but I still wanted to raise the issue and add support to Vercel on this matter.

Image

Reproducible demo

No response

Steps to reproduce

Create a deployment on Vercel.

Expected behavior

Only diff'ed files should rebuild.

Actual behavior

Each deployment on Vercel will build from scratch.

Your environment

No response

Self-service

  • I'd be willing to fix this bug myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn error in the Docusaurus core causing instability or issues with its execution

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions