Skip to content

nuxt layers with private repositories #26066

Discussion options

You must be logged in to vote

What I did (for GitLab, but it should be roughly the same):

  1. published layer to our company private repo as @my/layer

  2. created personal access token on my GitLab account

  3. in target project set following values in .env:

GIGET_REGISTRY=https://<<PRIVATE-REPO>>/api/v4/projects/<<PROJECT-ID>>/packages/npm/
GIGET_AUTH=<<TOKEN>>
  1. added the dependency into target project package.json:
"devDependencies": {
    "@my/layer": "latest"
}
  1. in nuxt.config.ts:
extends: [
    ['@my/layer', { install: true }]
]

This works for me.

In the docs they mention possibility to add gitlab: (or github:) prefix to extends, but that doesn't work for me for some reason.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@hiddenLadder
Comment options

Answer selected by hiddenLadder
Comment options

You must be logged in to vote
2 replies
@ErosBurastero
Comment options

@AloisSeckar
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants