-
Notifications
You must be signed in to change notification settings - Fork 21
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
8 changed files
with
583 additions
and
3,294 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 @@ | ||
export const handler = () => 'noop' |
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import type { OpenNextConfig } from 'open-next/types/open-next.js' | ||
|
||
// https://open-next.js.org/v3/config | ||
|
||
const config = { | ||
default: { | ||
// This is the default server, similar to the server-function in open-next v2 | ||
// You don't have to provide the below, by default it will generate an output | ||
// for normal lambda as in open-next v2 | ||
// override: { | ||
// wrapper: 'aws-lambda-streaming', // This is necessary to enable lambda streaming | ||
// }, | ||
}, | ||
|
||
// Below we define the functions that we want to deploy in a different server | ||
// functions: { | ||
// ssr: { | ||
// routes: ["app/api/trpc/[trpc]/route"], // For app dir, you need to include route|page, no need to include layout or loading | ||
// patterns: ["api/*"], // patterns needs to be in a cloudfront compatible format, this will be used to generate the output | ||
// override: { | ||
// wrapper: "aws-lambda-streaming", | ||
// }, | ||
// experimentalBundledNextServer: true, // This enables the bundled next server which is faster and reduce the size of the server | ||
// }, | ||
// }, | ||
} satisfies OpenNextConfig | ||
|
||
export default config | ||
export type Config = typeof config |
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.