fission-codes / fission

Fission CLI & server
https://runfission.com/docs
119 stars 14 forks source link

Make publish command aware of uploads directory #617

Open bgins opened 2 years ago

bgins commented 2 years ago

NB: Feature requests will only be considered if they solve a pain

Summary

Problem

If a developer appends to an app, then publishes the app, their appended files will no longer be available in the app.

Impact

Confusing developer experience. A developer will not expect their uploads to disappear when they publish.

Solution

Make the publish command aware of the uploads directory to preserve it.

As a rough sketch:

There are likely more details to consider. For example, what happens when an app has an uploads directory locally.

expede commented 2 years ago

@bgins we should talk about this in more detail. I actually think that this breaks user expectation.