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

feat(astro): add tunnelRoute option (#10309) #10334

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

florian-lefebvre
Copy link

Closes #10309

  • If you've added code that should be tested, please add tests.
  • Ensure your code lints and the test suite passes (yarn lint) & (yarn test).

I have not added tests just yet because I don't know how to mock virtual imports. I'm waiting for an answer from the Astro Discord.

@florian-lefebvre
Copy link
Author

Do you have something like changesets? Couldn't find it

@AbhiPrasad
Copy link
Member

@florian-lefebvre we handwrite our changelogs since we rely on gitflow + our release tool craft - feel free to open up the PR we'll take care of the changelog!

@Lms24
Copy link
Member

Lms24 commented Jan 25, 2024

Hey @florian-lefebvre thanks for opening this PR! I only skimmed it as I don't have much time at the moment but will take a closer look hopefully tomorrow. Nice idea with the virtualized config module!

I ran CI and looks like there are some build issues in the Astro package. Are you able to reproduce this locally?

@florian-lefebvre
Copy link
Author

A few reasons, but idk how to fix them:

  1. [tunnel.ts] Globals are not recognized: fetch, URL, Response, Request
  2. [virtual.d.ts] Looks like the type import does not work
  3. [virtual-imports.ts] Not sure how to fix eslint errors

Regarding testing, there's something about virtual modules (see docs). I've almost never tested Astro/integration code before so I'm not sure what's the best approach here

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.

Add tunneling option to @sentry/astro
3 participants