Replies: 1 comment
-
Hey @bchristie, Thank you for the code snippet. If you want, feel free to clone the project and add a new section to the docs. Perhaps in the FAQs about this. If not, I'll get to it eventually. As for saving to disk, this is something I have considered and will add as a feature in the future. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Been playing with this, and love it. However, I'd like to see one primary addition, mostly around when you want to leverage outstatic with NextJS for an SSR (static) website.
To elaborate, I love how easy it is to create posts (well, content in general) with outstatic. However, it seems very catered to being ran on a server where NextJS can run (as opposed to one leveraging NextJS for SSR/"headless"). To that point, at a high level, I'd like to see the following:
Firstly, outline how you can continue to use outstatic as-is, but maybe how you can get it to stand out of the way for static builds. What I found was renaming the necessary file extensions from
page.tsx
androute.tsx
topage.standalone.tsx
androute.standalone.tsx
(respectively), then massaging thenextjs.config.mjs
to behave differently based on the build I was targeting by adjustingpageExtensions
. e.g.Next, while It's great it auto-commits to a repo, the ability to use a different saving mechanism would be amazing (like direct to filesystem). Basically, use it as a pseudo-CMS and put the onerous of pushing files on me, the dev. As it stands now, I need to
git pull
every time I want to grab a recent change, then play around with how I can integrate it with the site. The local save would speed up that process, and give more flexibility for use cases of using this as a local tool (and serious competition against the gatsby/jekylls).Just food for thought, Hit me up with any questions, but this took me some time to work-around, and at the very least might allow my solution to help others in the same boat.
Happy coding!
p.s. Came across these two similar posts, but one was inconclusive, and the other used a hack (manual delete of the files).
Beta Was this translation helpful? Give feedback.
All reactions