-
Notifications
You must be signed in to change notification settings - Fork 9
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
Run the CMS in Deno Deploy #3
Comments
Lume adapter doesn't work on Deno Deploy because Deno Deploy doesn't have write permissions, so the website cannot be generated. If you want to host the CMS in a server, I have this script to configure a VPS: https://github.com/lumeland/cms-deploy We are working also on a Dockerfile (lumeland/cms-deploy#1) but configuring the git part is the challenge. |
With my PR, and the example server in the description, I have Lume CMS running on Deno Deploy (configured to use Github with environment variables). https://sad-tiger-94.deno.dev/admin |
Great, but not sure if this is required. LumeCMS alone works on Deno Deploy. |
Oh nice! That's exactly what I was looking for, thanks @oscarotero. |
In case anyone finds this issue and thread, using the linked solution does not support Lume CMS with Auth configurations, the underlying |
The example does not have auth configured but you can do it in this way: const app = cms({
auth: {
method: "basic",
users: {
user1: "password1",
user2: "password2",
},
},
}); |
Oh, I mean, if you have auth enabled and configured the server isn't able to process the requests. The errors I get are;
I'm looking at how to wire this up properly with the basic |
I suppose we might have to use |
Hmm, it seems a bug. It's using already Hono auth middleware https://github.com/lumeland/cms/blob/main/core/routes/auth.ts Let me take a look |
This works;
|
Okay, I found the bug. Seems that the I think it's fixed now. Can you upgrade to v0.3.3 and confirm? |
Lemme give that a try! |
Works! Thanks for the very quick response and bugfix! |
@oscarotero Have you run the CMS in Deno Deploy?
Its unclear to me if CMS Lume adapter would have any way around trying to use Lume to build the site locally. https://github.com/lumeland/cms/blob/main/adapters/lume.ts
The error I'm getting is:
Ideally, I'd like to run the CMS in Deno Deploy with it configured to use GitHub as the backend. I'm going to use GitHub actions to build the static Lume site and deploy it to a CDN.
I'm thinking about a
static
adapter only serves the CMS.The text was updated successfully, but these errors were encountered: