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

window is not defined in nuxtjs v3 #291

Open
rwaddin opened this issue Mar 1, 2023 · 8 comments
Open

window is not defined in nuxtjs v3 #291

rwaddin opened this issue Mar 1, 2023 · 8 comments

Comments

@rwaddin
Copy link

rwaddin commented Mar 1, 2023

I use Nuxtjs v3 SSR mode

image

@manyoubaby123
Copy link

+1

@OriS3
Copy link

OriS3 commented May 31, 2023

+1 If a friend has solved the same problem, can you point it out in the comments section?

@drattansingh
Copy link

https://stackoverflow.com/questions/69476190/nextjs-project-compilation-fails-with-jsencrypt

@1nusah
Copy link

1nusah commented Nov 22, 2023

@rwaddin did you find a fix for this?

@rwaddin
Copy link
Author

rwaddin commented Nov 23, 2023

I used windows to get the hostname, my problem was solved by parsing the query parameters from the front end before server side rendering.

or in newer versions you can use useRequestURL()

image

@rwaddin did you find a fix for this?

@1nusah
Copy link

1nusah commented Nov 23, 2023

I used windows to get the hostname, my problem was solved by parsing the query parameters from the front end before server side rendering.

or in newer versions you can use useRequestURL()

image

Thanks for your response, did you use this approach with nuxt's api routes or you had a separate backend/api. I'm currently trying to encrypt user password before sending it over to a different server

@rwaddin
Copy link
Author

rwaddin commented Nov 23, 2023

I used windows to get the hostname, my problem was solved by parsing the query parameters from the front end before server side rendering.
or in newer versions you can use useRequestURL()
image

Thanks for your response, did you use this approach with nuxt's api routes or you had a separate backend/api. I'm currently trying to encrypt user password before sending it over to a different server

in my case it is like this :
image

maybe you can encrypt the password on the nuxt api server before sending to another server.

@1nusah
Copy link

1nusah commented Nov 23, 2023

Oh okay, i ended up using the cdn instead and it works fine

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

5 participants