Skip to content

Commit

Permalink
Add a changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp committed Jul 22, 2022
1 parent 570a9f3 commit fa48c4e
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .changeset/famous-coins-destroy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
'astro': minor
'@astrojs/cloudflare': minor
'@astrojs/deno': minor
'@astrojs/image': minor
'@astrojs/netlify': minor
'@astrojs/node': minor
'@astrojs/sitemap': minor
'@astrojs/vercel': minor
---

New `mode` configuration option

This change introduces a new configuration option `mode`. Mode can be either

* `static` - The default, when building a static site.
* `server` - When building an app to be deployed for SSR (server-side rendering).

The default, `static`, can be omitted from your config file.

If you want to use SSR you now need to provide `mode: 'server'` *in addition* to an adapter.

The `adapter` configuration has been renamed to `deploy`. In the future adapters will support configuring a static site as well!

For SSR make this change:

```diff
import { defineConfig } from 'astro/config';
import netlify from '@astrojs/netlify/functions';

export default defineConfig({
- adapter: netlify(),
+ deploy: netlify(),
+ mode: 'server',
});
```

0 comments on commit fa48c4e

Please sign in to comment.