Skip to content

partytown integration doesn't work with vercel adapter in production #12832

@Kang-Jh

Description

@Kang-Jh

Astro Info

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
partytown

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

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageIssue needs to be triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions