We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When i add this package to my project its working on developement but when try to build project i get those errors while building
these are what i just do only adding these to nuxt.config.ts nothing more when delete these it is working
nuxt.config.ts
modules: [ '@kgierke/nuxt-basic-auth', ],
basicAuth: { enabled: true, users: [ { username: 'admin', password: 'admin', }, ], },
The text was updated successfully, but these errors were encountered:
Hi, for now this issue should be resolved by allowing the api/* routes using the allowedRoutes option, e.g.
api/*
allowedRoutes
export default defineNuxtConfig({ modules: ["@kgierke/nuxt-basic-auth"], basicAuth: { enabled: true, users: [ { username: "admin", password: "admin", }, ], // Optional: Whitelist routes // allowedRoutes: ["/api/.*"], }, });
I will look into improving the behavior together with nuxt content soon.
Sorry, something went wrong.
Okay thanks
No branches or pull requests
When i add this package to my project its working on developement but when try to build project i get those errors
while building
these are what i just do only adding these to
nuxt.config.ts
nothing more when delete these it is workingThe text was updated successfully, but these errors were encountered: