rsnext/examples/amp-story
Max Proske 1d5dd1bad3
Convert amp-story example to TypeScript (#38038)
Converted AMP Story example over to TypeScript to align with the Examples guide.

Note: Requires `v12.1.7-canary.41` or newer to build https://github.com/vercel/next.js/pull/37744#issuecomment-1159573754

## Documentation / Examples

- [X] Make sure the linting passes by running `pnpm lint`
- [X] The examples guidelines are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples)
2022-06-27 00:26:34 +00:00
..
pages Convert amp-story example to TypeScript (#38038) 2022-06-27 00:26:34 +00:00
.gitignore Added .gitignore to examples that are deployed to vercel (#15127) 2020-07-16 10:52:23 -04:00
amp.d.ts Convert amp-story example to TypeScript (#38038) 2022-06-27 00:26:34 +00:00
next-env.d.ts Convert amp-story example to TypeScript (#38038) 2022-06-27 00:26:34 +00:00
package.json Convert amp-story example to TypeScript (#38038) 2022-06-27 00:26:34 +00:00
README.md Update pnpm create next-app for latest pnpm 6 and 7 (#37254) 2022-05-27 21:21:40 +00:00
tsconfig.json Convert amp-story example to TypeScript (#38038) 2022-06-27 00:26:34 +00:00

Google AMP Story

This example shows how to create an AMP page with amp-story using Next.js and the AMP feature.

Deploy your own

Deploy the example using Vercel:

Deploy with Vercel

How to use

Execute create-next-app with npm, Yarn, or pnpm to bootstrap the example:

npx create-next-app --example amp-story amp-story-app
# or
yarn create next-app --example amp-story amp-story-app
# or
pnpm create next-app --example amp-story amp-story-app

Deploy it to the cloud with Vercel (Documentation).