Lennox
Auth middleware not redirecting
@kapa.ai the problem is, that I don't want the plugin to acess every page but only on those where my auth middleware is loaded. can I somehow define custom pageMeta and require those for a page to redirect on load/thru the plugin?
42 replies
GitHub Action - Deploy to NuxtHub
@kapa.ai
##[group]Run actions/setup-node@v4
with:
node-version: 22
cache: npm
always-auth: false
check-latest: false
token: ***
##[endgroup]
Found in cache @ /opt/hostedtoolcache/node/22.14.0/x64
##[group]Environment details
node: v22.14.0
npm: 10.9.2
yarn: 1.22.22
##[endgroup]
[command]/opt/hostedtoolcache/node/22.14.0/x64/bin/npm config get cache
/home/runner/.npm
##[warning]Cache not found for keys: node-cache-Linux-x64-npm-7c35e7e7cb5332a46f43337d471ae417e36fd87ef68e9744a3c4ccc66beeb151
npm cache is not found
##[group]Run npm install
[36;1mnpm install[0m
shell: /usr/bin/bash -e {0}
##[endgroup]
> postinstall
> nuxt prepare
[error] Cannot find module @rollup/rollup-linux-x64-gnu. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try
npm i
again after removing both package-lock.json and node_modules directory.
at requireWithFriendlyError (node_modules/rollup/dist/native.js:64:9)
at Object.<anonymous> (node_modules/rollup/dist/native.js:73:76)
at Module._compile (node:internal/modules/cjs/loader:1554:14)
at Object..js (node:internal/modules/cjs/loader:1706:10)
at Module.load (node:internal/modules/cjs/loader:1289:32)
at Function._load (node:internal/modules/cjs/loader:1108:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:220:24)
at cjsLoader (node:internal/modules/esm/translators:262:5)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:196:7)
[cause]: Cannot find module '@rollup/rollup-linux-x64-gnu'
Require stack:
- /home/runner/work/[REDACTED]/[REDACTED]/node_modules/rollup/dist/native.js
Require stack:
- node_modules/rollup/dist/native.js
at Function._resolveFilename (node:internal/modules/cjs/loader:1225:15)
at Function._load (node:internal/modules/cjs/loader:1055:27)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:220:24)
at Module.require (node:internal/modules/cjs/loader:1311:12)
at require (node:internal/modules/helpers:136:16)
at requireWithFriendlyError (node_modules/rollup/dist/native.js:46:10)
at Object.<anonymous> (node_modules/rollup/dist/native.js:73:76)
at Module._compile (node:internal/modules/cjs/loader:1554:14)
at Object..js (node:internal/modules/cjs/loader:1706:10)
[error] Cannot find module @rollup/rollup-linux-x64-gnu. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try npm i
again after removing both package-lock.json and node_modules directory.
npm error code 110 replies