You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Astro v5.0.5
Node v20.11.1
System Windows (x64)
Package Manager pnpm
Output server
Adapter @astrojs/vercel
Integrations @astrojs/tailwind
@astrojs/solid-js
@astrojs/partytown
@sentry/astro
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
Kang-Jh
changed the title
@astrojs/partytown produce nothing in production
partytown doesn't work with vercel adapter in production
Dec 26, 2024
Kang-Jh
changed the title
partytown doesn't work with vercel adapter in production
partytown integration doesn't work with vercel adapter in production
Dec 27, 2024
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(/dist) after vercel copies from it. To fix this issue, adapter needs to be executed after all integrations are executed but I don't know how it effects applications that use astro because some apps might rely on execution order of integrations.
I am experiencing a similar issue where I am using an Astro compressor plugin. The compressed HTML files in the output folder differ from those in the .vercel/output/static folder when running astro build.
venables
added a commit
to venables/venabl.es
that referenced
this issue
Dec 31, 2024
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: