Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate staging from immediate IPFS integration #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AritraDey-Dev
Copy link

fixes #2


// Save the staged files in a temporary location (e.g., .statik/staging/)
const stagingPath = cwd + "/.statik/staging/";
const stagingCID = await client.add(stagedFiles, { pin: false });
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still Staging is done by adding files to IPFS
Previous commit or existing snapshot is not checked before creating the new snapshot, same file with no changes may get committed twice
Suggestion: Now the commit message can be written as a blank space by not writing anything within the quotes so we can also add a check point to check whether a proper commit message is written.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stage without adding files to IPFS
2 participants