gatsby-remark-embedded-codesandbox
gatsby-remark-embedded-codesandbox copied to clipboard
Files in example directories being cached
trafficstars
Reproduction steps:
- Create a link to an example directory (CodeSandbox A generated)
- Change a file in that example directory (CodeSandbox A remains)
- Restart the server
- CodeSandbox A still remains
- Clear the Gatsby cache with
gatsby cleanand restart the server - CodeSandbox B generated (from change in 2. above)
Fast solution: I suppose the simplest way of dealing with this for now would be to document the fact that files are cached and that you should clear your Gatsby cache every time you make a change.
Good solution: Clean the cache of example directories on every server restart.