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

Astro 5.1 Vercel Server Islands (404 error) #12807

Closed
1 task
mrchantey opened this issue Dec 22, 2024 · 1 comment
Closed
1 task

Astro 5.1 Vercel Server Islands (404 error) #12807

mrchantey opened this issue Dec 22, 2024 · 1 comment
Labels
needs triage Issue needs to be triaged

Comments

@mrchantey
Copy link

mrchantey commented Dec 22, 2024

Astro Info

Astro                    v5.1.0
Node                     v20.18.1
System                   Linux (x64)
Package Manager          npm
Output                   server
Adapter                  @astrojs/vercel
Integrations             none

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

Upgrading to 5.1 broke server islands for my deployed vercel app (404 not found).
I'm guessing this is related to @astrojs/vercel because astro dev works and so does astro preview with the node adapter.

Downgrading back to Astro 5.0.3 fixes the issue.

Error message

GET https://bevyhub-nwfn5wvd4-petes-projects-607490fb.vercel.app/_server-islands/SceneList?e=SceneList&p=6206378E2AA7D4943B1A9B8ERr6EJavY%2FQcTfhxEVgYPhHg%2FGv6%2BIL581IbjZrUf6kpi00FN1XNfQ4snx9kCq0jH&s=%7B%7D 404 (Not Found)

Details

package.json

"@astrojs/vercel": "^8.0.1",
"astro": "^5.1.0",

astro.config.mts

export default defineConfig<never>({
  site: "https://bevyhub.dev",
  adapter: vercelAdapter(),
  output: 'server',
  scopedStyleStrategy: 'attribute',
})

src/pages/discover.astro

---
export const prerender = true
import { ContentLayout } from '@comp-astro/layout'
import { SceneList } from '@comp-astro/content'
import { CircularProgress } from '@design'

---
<ContentLayout>
  <h1>Discover</h1>
  <SceneList server:defer>
    <CircularProgress slot="fallback"/>
  </SceneList>
</ContentLayout>

What's the expected result?

For vercel server islands to work the same as in 5.0

Link to Minimal Reproducible Example

sorry im on the free plan so cant share vercel links

Participation

  • I am willing to submit a pull request for this issue.
@github-actions github-actions bot added the needs triage Issue needs to be triaged label Dec 22, 2024
@Trombach
Copy link

Duplicate of #12803

@mrchantey mrchantey closed this as not planned Won't fix, can't repro, duplicate, stale Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

2 participants