Skip to content

iframe URL ignores baseURL #506

@codehead

Description

@codehead

🐛 The bug

Comments on issue #237 seem to indicate that PR #386 would allow the iframe to be relative to baseURL, but the iframe still points to /__nuxt_devtools__/client/ - this makes nuxt devtools go 404 when the application is accessed through a reverse proxy.

🛠️ To reproduce

https://stackblitz.com/edit/nuxt-starter-s8vyfn?file=nuxt.config.ts

🌈 Expected behavior

Setting baseURL=/prefix/ in nuxt.config.ts

export default defineNuxtConfig({
  app: { baseURL: '/prefix/' },
  devtools: { enabled: true },
});

the iframe should point to /prefix/__nuxt_devtools__/client/ but opening the browser's network monitor or DOM inspector will show that it still points to /__nuxt_devtools__/client/

ℹ️ Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions