Azure / Azure/static-web-apps

Does SWA support writing files to a tmp directory?

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

Description

I'm currently trying to deploy a Next.js app that writes stuff to the tmp directory using: https://github.com/stefanpenner/sync-disk-cache
This is used by the Sitecore JSS next.js SDK:
https://github.com/Sitecore/jss/blob/dev/packages/sitecore-jss-nextjs/src/editing/editing-data-cache.ts

The editing data cache is currently getting mis-hits, I assume because the SWA is not allowed to write to the tmp directory?
![image](https://user-images.githubusercontent.com/5425589/197763128-9a2c8fad-ad7b-4f08-95f4-94d21a0e104d.png)

So my question is, is this even supported? Or do I need to provide a different os.tmpdir?

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.