DenoDDeno
Powered by
AyhoA
Denoβ€’13mo agoβ€’
2 replies
Ayho

Lume CMS

Hello, I have an issue when I want to deploy Lume CMS with deno deploy.

I have my lume CMS storage config set to the src folder and I followed the documentation steps here https://lume.land/cms/deployment/deno-deploy/

the CMS is live but when. I want to edit the data, it doesn't edit in the src folder but in the root folder. Is it normal? Here is my cms file

const cms = lumeCMS({
  auth: {
    method: "basic",
    users: {
      [Deno.env.get("USERNAME") || "admin"]: Deno.env.get("PASSWORD") || "password",
    },
  },
});

cms.upload({
  name: "images",
  description: "",
  store: "src:images",
});

cms.storage(
  "src",
  new GitHub({
    client: new Octokit({ auth: Deno.env.get("GITHUB_TOKEN") }),
    owner: "{{myname}}",
    repo: "{{myrepo}}",       
    branch: "main",            
  }),
)

export default cms;
const cms = lumeCMS({
  auth: {
    method: "basic",
    users: {
      [Deno.env.get("USERNAME") || "admin"]: Deno.env.get("PASSWORD") || "password",
    },
  },
});

cms.upload({
  name: "images",
  description: "",
  store: "src:images",
});

cms.storage(
  "src",
  new GitHub({
    client: new Octokit({ auth: Deno.env.get("GITHUB_TOKEN") }),
    owner: "{{myname}}",
    repo: "{{myrepo}}",       
    branch: "main",            
  }),
)

export default cms;



I don't know if the _config.ts is necessary for this but I set up the lume options like this

const site = lume({
src: "./src",
});

my entrypoint is _cms.ts on deno deploy

Thanks in advance!
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Deploying Lume to github pages
WolfieKneeWWolfieKnee / help
3y ago
web based cms
alex-009Aalex-009 / help
3y ago
Does the picture plugin for lume work with remote Images?
KirKKKirK / help
3y ago
unsupported lockfile
kinghatKkinghat / help
2y ago