Skip to content

Commit

Permalink
fix: make forceServerOutput optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Princesseuh committed Aug 23, 2024
1 parent 032327d commit c423751
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
8 changes: 7 additions & 1 deletion examples/minimal/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import { defineConfig } from 'astro/config';

import node from "@astrojs/node";

// https://astro.build/config
export default defineConfig({});
export default defineConfig({
adapter: node({
mode: "standalone"
})
});
3 changes: 2 additions & 1 deletion examples/minimal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"astro": "astro"
},
"dependencies": {
"astro": "^5.0.0-alpha.1"
"astro": "^5.0.0-alpha.1",
"@astrojs/node": "^9.0.0-alpha.0"
}
}
2 changes: 1 addition & 1 deletion examples/minimal/src/pages/index.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
export const prerender = false;
---

<html lang="en">
Expand Down
2 changes: 1 addition & 1 deletion packages/astro/src/types/public/integrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export interface AstroAdapterFeatures {
/**
* Force Astro to output a server output, even if all the pages are prerendered
*/
forceServerOutput: boolean;
forceServerOutput?: boolean;
}

export interface AstroAdapter {
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c423751

Please sign in to comment.