Skip to content

docus IN a layer #1290

@PhE

Description

@PhE

I have a docus app my-docs created with npx create-docus my-docs with some extra pages/components.
Now I would use my-docs as a layer for another app my-site.

What is the recommended approach ?

I tried:

  1. npx create-docus my-docs
  2. npx create-docus my-site
  3. create my-site/nuxt.config.ts with:
export default defineNuxtConfig({
  extends: ["../my-docs"],
});

But got an error about zod not properly installed !!

Should I

  • remove the --extends docus in the package.json and add extends: ["docus"] to nuxt.config.ts ?
  • copy down dependencies from layer ?
  • prefer pnpm over npm or bun when juggling with nuxt layers ?
  • avoid nesting layers ?

I will create a test repo but need basic hints first

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions