You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/pages/v3/config.mdx
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,15 +23,19 @@ const config = {
23
23
},
24
24
functions: { // here we define the functions that we want to deploy in a different server
25
25
ssr: {
26
-
routes: ["app/api/isr/route", "app/api/sse/route", "app/api/revalidateTag/route"], // For app dir, you need to include route|page, no need to include layout or loading
27
-
patterns: ['api/*'], // patterns needs to be in a cloudfront compatible format, this will be used to generate the output
26
+
routes: [
27
+
"app/api/isr/route", "app/api/sse/route", "app/api/revalidateTag/route", // app dir Api routes
28
+
"app/route1/page", "app/route2/page", // app dir pages
29
+
"pages/route3"// page dir pages
30
+
], // For app dir, you need to include route|page, no need to include layout or loading
31
+
patterns: ['api/*', 'route1', 'route2', 'route3'], // patterns needs to be in a cloudfront compatible format, this will be used to generate the output
28
32
override: {
29
33
wrapper: "aws-lambda-streaming",
30
34
},
31
35
experimentalBundledNextServer: true// This enables the bundled next server which is faster and reduce the size of the server
32
36
},
33
37
pageSsr: {
34
-
routes: ["pages/pageSsr"], //Routes should be in the form `pages/${route}` without the extension, it should match the filesystem
38
+
routes: ["pages/pageSsr"], //For page dir routes should be in the form `pages/${route}` without the extension, it should match the filesystem
0 commit comments