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

Hybrid rendering is not working on Netlify #8373

Closed
1 task
vkbansal opened this issue Sep 2, 2023 · 7 comments · Fixed by #8388
Closed
1 task

Hybrid rendering is not working on Netlify #8373

vkbansal opened this issue Sep 2, 2023 · 7 comments · Fixed by #8388
Labels
- P4: important Violate documented behavior or significantly impacts performance (priority)

Comments

@vkbansal
Copy link

vkbansal commented Sep 2, 2023

Astro Info

Astro                    v3.0.7
Node                     v18.16.1
System                   macOS (arm64)
Package Manager          npm
Output                   hybrid
Adapter                  @astrojs/netlify
Integrations             @astrojs/preact

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

No response

Describe the Bug

Hybrid rendering is not working on Netlify. Getting a 404.

Works fine with astro CLI: `astro dev`. image
Does not work with Netlify CLI: `netlify dev`. Even some static pages are not working with Netlify CLI image
Does not work on production: https://f1.vkbansal.me/constructors/ferrari image

What's the expected result?

It should work on Netlify.

Link to Minimal Reproducible Example

https://github.com/vkbansal/formula1-app

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 Sep 2, 2023
@BlankParticle
Copy link

I am facing a same kind of error can you please check if you are getting these errors in console,
image

@FredKSchott
Copy link
Member

I believe that this was fixed by #8366, can you update your versions to latest and then retry?

@natemoo-re natemoo-re reopened this Sep 4, 2023
@natemoo-re
Copy link
Member

@FredKSchott I believe this is a separate issue, but I'm sure there are duplicates for it. Seems like beforeHydrationUrl is defaulting to / which then attempts to import('/') which is an HTML document.

@vkbansal
Copy link
Author

vkbansal commented Sep 4, 2023

Still not working: https://f1.vkbansal.me/drivers/albon
Here is the source: https://github.com/vkbansal/formula1-app/blob/main/src/pages/drivers/%5BdriverRef%5D.astro

I also removed functionPerRoute: true

@ematipico ematipico reopened this Sep 4, 2023
@matthewp matthewp added - P4: important Violate documented behavior or significantly impacts performance (priority) pkg: netlify and removed - P4: important Violate documented behavior or significantly impacts performance (priority) needs triage Issue needs to be triaged labels Sep 5, 2023
@vkbansal
Copy link
Author

Any updates on this? This is a major issue for my other projects to be migrated to v3.

@vkbansal
Copy link
Author

Working with v3.0.12

@davehowson
Copy link

This is not working for me.
I had to switch to server rendering because hybrid gives 404 for API endpoints.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- P4: important Violate documented behavior or significantly impacts performance (priority)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants