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

Rewrite nuxt config in runtime #250

Open
oleghalin opened this issue Feb 16, 2023 · 1 comment
Open

Rewrite nuxt config in runtime #250

oleghalin opened this issue Feb 16, 2023 · 1 comment

Comments

@oleghalin
Copy link

Plugin works like a charm, but for supporting GTM debug i need to stop pushing gtm to partytown if debug enabled which i made based on query parameter, but also i need to stop forwarding dataLayer.push to partytown if debug enabled, what will be proper way to change nuxt config in middleware or plugin?

Thanks

@oleghalin
Copy link
Author

So, i figured it out with plugin which rewrites window.partytown on runtime, but i think its better to move generating partytown config to runtime, what you think about it? Maybe some sort of definePartytown composable?

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

1 participant