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
{{ message }}
This repository was archived by the owner on Jan 28, 2025. It is now read-only.
@@ -185,7 +185,18 @@ You can set any function property described [here](https://serverless.com/framew
185
185
186
186
## Custom page routing
187
187
188
-
The default page route is `/{pageName}`. You may want to serve your page from a different path. This is possible by setting your own http path in the `pageConfig`. For example for `pages/post.js`:
188
+
The default page routes follow the same convention as next `useFileSystemPublicRoutes` documented [here](https://nextjs.org/docs/#routing).
You may want to serve your page from a different path. This is possible by setting your own http path in the `pageConfig`. For example for `pages/post.js`:
189
200
190
201
```js
191
202
class Post extends React.Component {
@@ -220,16 +231,27 @@ custom:
220
231
slug: true
221
232
```
222
233
223
-
## Custom 404 error page
234
+
## Custom error page
224
235
225
-
By default, Amazon API Gateway returns 403 responses when a given route doesn't exist. Instead, the plugin makes sure the [\_error page](https://nextjs.org/docs/#custom-error-handling) is rendered. That way you can customise how your 404 error page looks like.
236
+
404 or 500 errors are handled both client and server side by a default component `error.js`, same as documented [here](https://github.com/zeit/next.js/#custom-error-handling).
0 commit comments