| 1 | /** |
| 2 | * Astro's node-side server environments. They must be kept away from any |
| 3 | * deploy target's worker treatment (unenv polyfills, workerd resolve |
| 4 | * conditions, dependency pre-bundling) and they never contribute worker |
| 5 | * modules to the build output: `astro` is a dev-only tooling helper; |
| 6 | * `prerender` builds to `dist/server/.prerender/` and is deleted after |
| 7 | * prerendering completes. |
| 8 | * |
| 9 | * Platform-neutral: this is a fact about Astro's own environment topology, |
| 10 | * shared by the framework core (the collector's `skipEnvironments`) and by |
| 11 | * target modules (e.g. the cloudflare vite plugin's `skipEnvironments`). |
| 12 | */ |
| 13 | export const NODE_ENVIRONMENTS = ["astro", "prerender"] as const; |