Azure / Azure/static-web-apps

Node module caching

Open
#203 2 comments 3 reactions 0 assignees View on GitHub
oryx
Dominant language
No language data
Stars
346
Forks
67
PR merge metrics
No merged PRs in 30d

Description

Morning team. Firstly thanks for all your work on this, really appreciating the fixes. I do have a question about caching node modules. I've been using the `cache@v2` action for caching `./node_modules` using the lockfile as a key in my non-SWA based repos but it doesn't work here as it doesn't appear that the swa action copies `node_modules` into the Oryx workspace. As a result the npm dependencies have to be downloaded again.

I did wonder about copying them into the Oryx working dir using a custom build command but 1. that seems like a bit of a hack and 2. I'm not even sure that would work for projects with separate frontend and api lockfiles?

Is this a viable way of doing it or have I missed something?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.