astro/packages/integrations/netlify/test/edge-functions/fixtures/prerender/astro.config.mjs
Nate Moore 39403c32fa
Unflag hybrid output (#7260)
* feat(hybrid): unflag hybrid output

* chore: cleanup rebase errors
2023-06-05 13:19:15 -05:00

16 lines
418 B
JavaScript

import { defineConfig } from "astro/config";
import { netlifyEdgeFunctions } from "@astrojs/netlify";
const isHybridMode = process.env.PRERENDER === "false";
/** @type {import('astro').AstroConfig} */
const partialConfig = {
output: isHybridMode ? "hybrid" : "server",
};
export default defineConfig({
adapter: netlifyEdgeFunctions({
dist: new URL("./dist/", import.meta.url),
}),
...partialConfig,
});