e0ca0d8c8a
This reverts commit bc5d6ed39f
.
23 lines
525 B
JavaScript
23 lines
525 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",
|
|
...(isHybridMode
|
|
? ({
|
|
experimental: {
|
|
hybridOutput: true,
|
|
},
|
|
})
|
|
: ({})),
|
|
};
|
|
|
|
export default defineConfig({
|
|
adapter: netlifyEdgeFunctions({
|
|
dist: new URL("./dist/", import.meta.url),
|
|
}),
|
|
...partialConfig,
|
|
});
|