-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
454 additions
and
8 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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"index": "What's new", | ||
"config": "Configuration file", | ||
"override": "Create your own override" | ||
"reference-implementation": "Reference Construct", | ||
"override": "Advanced - Create your own override" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,11 @@ import { Callout } from 'nextra/components' | |
|
||
<Callout type="warning" emoji="⚠️"> | ||
|
||
This is a release candidate, it is not yet ready for production, but we are getting close. We are looking for feedback on this release, so please try it out and let us know what you think. | ||
`[email protected]` is here!!! Please report any issues you find on [discord](https://discord.com/channels/983865673656705025/1164872233223729152) or on the github [PR](https://github.com/sst/open-next/pull/327) | ||
`[email protected]` is here!!! Please report any issues you find on [discord](https://discord.com/channels/983865673656705025/1164872233223729152) or on the github [PR](https://github.com/sst/open-next/pull/327) | ||
|
||
This is a release candidate, it is not yet ready for production, but we are getting close. We are looking for feedback on this release, so please try it out and let us know what you think. See [getting started](#get-started) to quickly test it. | ||
|
||
It also requires an updated version of the IAC tools that you use, see the sst PR [here](https://github.com/sst/sst/pull/3567) for more information | ||
It also requires an updated version of the IAC tools that you use, see the sst PR [here](https://github.com/sst/sst/pull/3567) for more information. | ||
</Callout> | ||
|
||
## What's new in V3? | ||
|
@@ -27,4 +27,32 @@ import { Callout } from 'nextra/components' | |
|
||
- Allow for splitting, you can now split your next app into multiple servers, which could each have their own configuration | ||
- An experimental bundled `NextServer` could be used which can reduce the size of your lambda by up to 24 MB | ||
- ~~Support for the `edge` runtime of next~~ (coming soon) | ||
- Support for the `edge` runtime of next (Only app router for now, only 1 route per function) | ||
|
||
## Get started | ||
|
||
The easiest way to get started is to use the [reference implementation construct](/v3/reference-implementation). Copy this reference implementation into your project and then use it like that in your sst or cdk project: | ||
|
||
```ts | ||
import { OpenNextCdkReferenceImplementation } from "path/to/reference-implementation" | ||
|
||
const site = new OpenNextCdkReferenceImplementation(stack, "site", { | ||
openNextPath: ".open-next", | ||
}) | ||
``` | ||
|
||
You also need to create an `open-next.config.ts` file in your project root, you can find more info [here](/v3/config). | ||
|
||
A very simple example of this file could be: | ||
|
||
```ts | ||
import type { BuildOptions } from 'open-next/types/open-next' | ||
const config = { | ||
default: { | ||
|
||
} | ||
} | ||
module.exports = config | ||
``` | ||
|
||
Then you need to run `npx [email protected] build` to build your project before running the `sst deploy` or `cdk deploy` command to deploy your project. |
Oops, something went wrong.
83207d8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
open-next – ./
open-next-sst-dev.vercel.app
open-next-git-main-sst-dev.vercel.app
open-next.vercel.app