[experimental] Rendering to AMP (#6218)
* Add initial AMP implementation * Implement experimental feature flag * Implement feedback from sbenz * Add next/amp and `useAmp` hook * Use /:path*/amp instead * Add canonical * Add amphtml tag * Add ampEnabled for rel=“amphtml” * Remove extra type
Showing
| ... | @@ -60,6 +60,7 @@ | ... | @@ -60,6 +60,7 @@ |
| "@zeit/next-css": "1.0.2-canary.2", | "@zeit/next-css": "1.0.2-canary.2", | ||
| "@zeit/next-sass": "1.0.2-canary.2", | "@zeit/next-sass": "1.0.2-canary.2", | ||
| "@zeit/next-typescript": "1.1.2-canary.0", | "@zeit/next-typescript": "1.1.2-canary.0", | ||
| "amphtml-validator": "1.0.23", | |||
| "babel-core": "7.0.0-bridge.0", | "babel-core": "7.0.0-bridge.0", | ||
| "babel-eslint": "9.0.0", | "babel-eslint": "9.0.0", | ||
| "babel-jest": "23.6.0", | "babel-jest": "23.6.0", | ||
| ... | @@ -83,8 +84,8 @@ | ... | @@ -83,8 +84,8 @@ |
| "node-sass": "4.9.2", | "node-sass": "4.9.2", | ||
| "pre-commit": "1.2.2", | "pre-commit": "1.2.2", | ||
| "prettier": "1.15.3", | "prettier": "1.15.3", | ||
| "react": "16.6.3", | "react": "16.8.0", | ||
| "react-dom": "16.6.3", | "react-dom": "16.8.0", | ||
| "release": "5.0.3", | "release": "5.0.3", | ||
| "request-promise-core": "1.1.1", | "request-promise-core": "1.1.1", | ||
| "rimraf": "2.6.2", | "rimraf": "2.6.2", | ||
| ... | ... |
packages/next-server/amp.js
0 → 100644
This diff is collapsed.
packages/next/amp.js
0 → 100644
Please
register
or
sign in
to comment