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

fix: correct endpoint for for devtools #762

Closed
wants to merge 1 commit into from
Closed

Conversation

antfu
Copy link
Member

@antfu antfu commented Nov 15, 2023

@antfu antfu changed the title fix: view for devtools fix: path for for devtools Nov 15, 2023
@@ -167,7 +167,7 @@ export default defineNuxtModule<ModuleOptions>({
icon: 'logos-tailwindcss-icon',
view: {
type: 'iframe',
src: viewerConfig.endpoint
src: `/${viewerConfig.endpoint}/`.replace(/\/+/g, '/')
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By default viewerConfig.endpoint contains _tailwind, where we actually need a absolute path here as /_tailwind/

@antfu antfu changed the title fix: path for for devtools fix: correct endpoint for for devtools Nov 15, 2023
@ineshbose
Copy link
Collaborator

Thanks for the PR - this should be addressed in #754!

@atinux atinux closed this Nov 15, 2023
@ineshbose ineshbose deleted the fix/devtools-view branch November 22, 2023 09:06
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 this pull request may close these issues.

3 participants