muuvmuuv / portfolio

My personal portfolio
https://marvin.digital/
2 stars 0 forks source link

[BUG] Stop Gatsby from executing `createPages` on every file on every change #54

Closed muuvmuuv closed 3 years ago

muuvmuuv commented 4 years ago

Description

When running in dev mode, every change triggers this API.

Expected Behavior

Should only execute on changed pages

Actual Behavior

See title

Possible Fix

Maybe something in the docs I have missed. Possibly there is a variable or hook to look for changed files.

Steps to Reproduce

Provide a screenshot/video with the bug you have found if possible

  1. run in dev
  2. change file