Hello Phil,
I saw your answer now and I havn't had time to try this out before now.
It's still not working for me. As soon as I make the repo private I get 401.
These are my dependencies:
"dependencies": {
"@nuxtjs/axios": "^5.13.1",
"@nuxtjs/prismic": "^1.2.6",
"@prismicio/client": "^4.0.0",
"@prismicio/vue": "^2.0.11",
"cookies": "^0.8.0",
"nuxt": "^2.15.3",
"prismic-dom": "^2.2.4"
},
"devDependencies": {
"@nuxt/postcss8": "^1.1.3",
"@nuxtjs/dotenv": "^1.4.1",
"@nuxtjs/eslint-config": "^6.0.0",
"@nuxtjs/eslint-module": "^3.0.2",
"@nuxtjs/svg": "^0.1.12",
"@nuxtjs/tailwindcss": "^4.0.1",
"babel-eslint": "^10.1.0",
"cross-env": "^7.0.3",
"css-loader": "^5.0.0",
"eslint": "^7.20.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-nuxt": "^2.0.0",
"eslint-plugin-prettier": "^3.3.1",
"node-sass": "^5.0.0",
"nodemon": "^2.0.7",
"postcss": "^8.1.10",
"postcss-import": "^13.0.0",
"postcss-loader": "^4.1.0",
"postcss-url": "^10.1.1",
"sass-loader": "^10.1.1"
}
This is in my nuxt.config.js
:
prismic: {
endpoint: process.env.PRISMIC_URL,
apiOptions: {
accessToken: process.env.PRISMIC_API_KEY
},
disableGenerator: true
},
Inside the .env
-file I have the API-key PRISMIC_API_KEY=EXAMPLE
. Everything else inside the .env
works fine.
Are you guys sure it's really working for Nuxt?