Closed x71c9 closed 11 months ago
@x71c9 I used the reproduction, and when I run npm run build
, the adapter creates a dist/_redirects
that has the correct content:
/ /.netlify/builders/entry 200
You need to give us a correct reproduction to help you.
Hello @x71c9. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with needs: repro
will be closed if they have no activity within 3 days.
Sorry for the automated comment, I can see that we properly generate a redirect to the /.netlify/builders/entry
file, but that file doesn't seem to exist in the generated bundle.
Sounds like a regression on our end.
@natemoo-re I believe that's a stackblitz thing that hides dot folders. I just used a local project on mine, and the assets are correctly emitted.
I deployed my pet project to netlify and I can't see the headers that usually identify builders. Meaning, their value is always miss
.
Can we confirm that this is still an issue.
Closing for now, because the Issue seems to be stale. Happy to reopen, if we get new information or confirmation.
What version of
astro
are you using?2.8.3
Are you using an SSR adapter? If so, which one?
Netlify
What package manager are you using?
yarn
What operating system are you using?
Linux
What browser are you using?
Chromium
Describe the Bug
Reading the documentation it seems it is possible to use Netlify On-Demand builder to build pages on demand and then cache them on the Netlify CDN.
I tried to implement this feature but it doesn't seem to work.
Here is my code:
The
setTimeout
is for emulating anasync
method that takes some time.After deploying with:
I see the page waiting 2 seconds before delivering the HTML.
However I would expect the Netlify On-Demand Builder to cache it and then not wait 2 seconds anymore.
I checked on Netlify support and a Support Engineer answer with this: https://answers.netlify.com/t/astro-adapter-with-on-demand-builder-not-caching/96756/4?u=ndr4
Is this true? Is this a bug in the Astro Netlify adapter library?
What's the expected result?
When I call the URL the On-demand builder cache the response. The second time I call the same URL the CDN respond with the cached version.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-zfmbew?file=astro.config.mjs
Participation