Skip to content
New issue

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

Does this work when the target is static ? #158

Closed
kissu opened this issue Oct 22, 2020 · 3 comments
Closed

Does this work when the target is static ? #158

kissu opened this issue Oct 22, 2020 · 3 comments

Comments

@kissu
Copy link

kissu commented Oct 22, 2020

So yeah, basically this module is working great while nuxt dev.

But when nuxt generate then nuxt start, so it's giving me

Environment: production
Rendering: server-side
Target: static

It just ignore the whole security even with enabled: true.

Wanted to be sure what is happening there. 😄

@zeitchef
Copy link

I'd love to know about this as well!

@tallcoder
Copy link

tallcoder commented Nov 10, 2020

Good question! Would love to know that myself. It doesn't seem to, which is the only time I need this to work (when it's static). It working locally isn't very helpful.

@potato4d
Copy link
Owner

potato4d commented Nov 21, 2020

@kissu @tallcoder
Nuxt.js's static mode works as a static website.
In a static website, Nuxt.js only serves files and does not allow Node.js-derived functionality to operate.
Therefore, the nuxt-basic-auth-module, which relies on Nuxt.js, does not work in static, which is the correct behavior.

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

No branches or pull requests

4 participants