-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Sarah Rainsberger <[email protected]>
- Loading branch information
1 parent
c8bccb4
commit 459b5bd
Showing
24 changed files
with
702 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
'astro': minor | ||
--- | ||
|
||
Shipped a new SSR build configuration mode: `split`. | ||
When enabled, Astro will "split" the single `entry.mjs` file and instead emit a separate file to render each individual page during the build process. | ||
|
||
These files will be emitted inside `dist/pages`, mirroring the directory structure of your page files in `src/pages/`, for example: | ||
|
||
``` | ||
├── pages | ||
│ ├── blog | ||
│ │ ├── entry._slug_.astro.mjs | ||
│ │ └── entry.about.astro.mjs | ||
│ └── entry.index.astro.mjs | ||
``` | ||
|
||
To enable, set `build.split: true` in your Astro config: | ||
|
||
```js | ||
// src/astro.config.mjs | ||
export default defineConfig({ | ||
output: "server", | ||
adapter: node({ | ||
mode: "standalone" | ||
}), | ||
build: { | ||
split: true | ||
} | ||
}) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.