mirror of
https://github.com/arikchakma/maily.to.git
synced 2026-04-25 22:25:51 +03:00
[GH-ISSUE #134] Saving the output to JSON to store in DB #48
Labels
No labels
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/maily.to#48
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @HeapReaper on GitHub (Feb 25, 2025).
Original GitHub issue: https://github.com/arikchakma/maily.to/issues/134
Hi.
First of all, damn, this is such an nice project!
I'm integrating it into my services. Now i wanna make an custom save option.
What is the best way of doing this?
Hope you can give me some information about it! :)
@arikchakma commented on GitHub (Feb 25, 2025):
You can use something like this, you don't need to keep the JSON in a separate store/state. While saving, you can use
editor.getJSON()and save it in your backend.@HeapReaper commented on GitHub (Feb 26, 2025):
Hi, thanks for you're extremely fast reaction!

I will use that :)
Small side node, i wanna deploy it to Vervel. Do you know what i need to do? I did add the env variables to the application.
Update, now trying Dockerfile:
Tho getting
command finished with error: command (/app/packages/render) /root/.local/share/pnpm/.tools/pnpm/9.15.4/bin/pnpm run build exited (1)with some CSS error.@HeapReaper commented on GitHub (Feb 26, 2025):
I got it working:
But it shows
Module not found: Can't resolve '@maily-to/core'@arikchakma commented on GitHub (Feb 26, 2025):
I also get this error sometimes while running it locally, but few mins it works fine. I think it's an issue with the previous version of Next, but I am not willing to upgrade now as something new is coming soon.
@HeapReaper commented on GitHub (Feb 27, 2025):
Hmm check.
@arikchakma would you mind sharing the commands to run a production build for this project?
@arikchakma commented on GitHub (Feb 27, 2025):
I am also hosting it in Vercel, I run this command to do the production build
cd ../.. && turbo run build --filter=web.