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

Investigate offloading entire scripts as a server proxy #87

Open
harlan-zw opened this issue Jun 10, 2024 · 1 comment
Open

Investigate offloading entire scripts as a server proxy #87

harlan-zw opened this issue Jun 10, 2024 · 1 comment

Comments

@harlan-zw
Copy link
Collaborator

harlan-zw commented Jun 10, 2024

Theoretically, we can proxy all of the client requests to be sent by the server, meaning we also technically don't need to load the client-side script at all.

This would require writing our own implementation for tracking the page events, this should be based on Plausible as they seem quite performant.

Inspo: https://developers.cloudflare.com/zaraz/

This should be fairly minimal to support as we can stub out he core functions already using the useScript API.

@harlan-zw
Copy link
Collaborator Author

https://github.com/nuxt/scripts/tree/feat/server-events

It can be done but may be quite hacky

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