-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
partytown integration doesn't work with vercel adapter in production #12832
Comments
It looks like when astro build process is started, adapter is called prior to integrations so vercel adapter doesn't copy partytown script because partytown paste script to the output directory( // before
settings.config.integrations.unshift(settings.config.adapter);
// after
settings.config.integrations.push(settings.config.adapter); |
I am experiencing a similar issue where I am using an Astro compressor plugin. The compressed HTML files in the |
It doesn't work with the vercel adapter: withastro/astro#12832
This is an issue with the Vercel adapter's handling of static assets. I'm closing as a dupe of an existing issue which is a manifestation of the same problem. |
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
In development enviroment, partytown script loaded fine. But in production partytown script isn't loaded beacause of HTTP 404 error
I tested node and vercel adapters. Node adapter produced
~partytown
directory, but vercel didn't. It might seem that vercel adapter with partytown doesn't work now.What's the expected result?
vercel adapter produce partytown script and partytown should be loaded in a browser
Link to Minimal Reproducible Example
https://github.com/Kang-Jh/astro-partytown-repro
Participation
The text was updated successfully, but these errors were encountered: