To perform this migration by hand, or view what the codemod will produce, see below:
**Before**
```jsx
import{withAmp}from'next/amp'
functionHome(){
return<h1>My AMP Page</h1>
}
exportdefaultwithAmp(Home)
// or
exportdefaultwithAmp(Home,{hybrid:true})
```
**After**
```jsx
exportdefaultfunctionHome(){
return<h1>My AMP Page</h1>
}
exportconstconfig={
amp:true,
// or
amp:'hybrid',
}
```
#### `next export` no longer exports pages as `index.html`
Previously, exporting `pages/about.js` would result in `out/about/index.html`. This behavior has been changed to result in `out/about.html`.
You can revert to the previous behavior by creating a `next.config.js` with the following content:
```js
// next.config.js
module.exports={
exportTrailingSlash:true,
}
```
## Deprecated Features
#### `next/dynamic` has deprecated loading multiple modules at once
The ability to load multiple modules at once has been deprecated in `next/dynamic` to be closer to React's implementation (`React.lazy` and `Suspense`).
Updating code that relies on this behavior is relatively straightforward! We've provided an example of a before/after to help you migrate your application: