diff --git a/README.md b/README.md index 11e1d5edc..0deb7539b 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ pnpm i # Generate type stubs pnpm dev:prepare -# Go the the playground directory +# Go to the playground directory cd playground # And run any commands diff --git a/src/utils/templates.ts b/src/utils/templates.ts index 368b21f16..dd68c1c7b 100644 --- a/src/utils/templates.ts +++ b/src/utils/templates.ts @@ -112,6 +112,15 @@ const page: Template = ({ name, nuxtOptions }) => ({ `, }) +const layer: Template = ({ name, nuxtOptions }) => { + return { + path: resolve(nuxtOptions.srcDir, `layers/${name}/nuxt.config.ts`), + contents: ` +export default defineNuxtConfig({}) +`, + } +} + export const templates = { api, plugin, @@ -120,6 +129,7 @@ export const templates = { middleware, layout, page, + layer, } as Record // -- internal utils --