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

Is it possible to change the iframe url? #237

Closed
5v3n-08 opened this issue May 15, 2023 · 4 comments · Fixed by #386
Closed

Is it possible to change the iframe url? #237

5v3n-08 opened this issue May 15, 2023 · 4 comments · Fixed by #386

Comments

@5v3n-08
Copy link

5v3n-08 commented May 15, 2023

We are currently using a proxy in our project, https://example.com is running another project and https://example.com/next is running the current project with nuxt 3.

By default the iframe calls https://example.com/__nuxt_devtools__/client/ which redirects to the other project.

Is it possible to change the url to https://example.com/next/__nuxt_devtools__/client/ without changing our proxy?

@antfu
Copy link
Member

antfu commented May 24, 2023

Do you have baseUrl set up? This sounds like a bug as the DevTools module should respect base URL.

@5v3n-08
Copy link
Author

5v3n-08 commented May 24, 2023

yes i have set this in nuxt.config.ts

app: { baseURL: '/next/' }

@5v3n-08
Copy link
Author

5v3n-08 commented Jul 4, 2023

What about the error? Do you already know when you can fix it?

@cpreston321
Copy link
Contributor

Looks like it would need to prepend the baseUrl from nuxt if set on the main project. By default it will be set to /__nuxt_devtools__/client without the baseUrl from parent project.

Code:

const CLIENT_PATH = '/__nuxt_devtools__/client'

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

Successfully merging a pull request may close this issue.

3 participants