Unverified Commit d96de6ea authored by Laura Beatris's avatar Laura Beatris Committed by GitHub

Fix typos found on examples docs (#20516)

This PR fixes some typos found on examples docs 
parent bad14484
# Ant Design Mobile example # Ant Design Mobile example
This example features how you use [antd-mobile](https://github.com/ant-design/ant-design-mobile) (Ant Design Mobile FrontEnd Framwork) with Next.js. This example features how you use [antd-mobile](https://github.com/ant-design/ant-design-mobile) (Ant Design Mobile FrontEnd Framework) with Next.js.
## Deploy your own ## Deploy your own
......
...@@ -36,10 +36,10 @@ Then set each variable on `.env.local`: ...@@ -36,10 +36,10 @@ Then set each variable on `.env.local`:
- `DETA_PROJECT_KEY` should be the default _Project Key_ that you saved from step 1. - `DETA_PROJECT_KEY` should be the default _Project Key_ that you saved from step 1.
The resulting `env.local` file shoule look like this: The resulting `env.local` file should look like this:
```bash ```bash
DETA_PROEJECT_KEY=... DETA_PROJECT_KEY=...
``` ```
### Step 3. Run Next.js in development mode ### Step 3. Run Next.js in development mode
......
...@@ -29,7 +29,7 @@ Available commands: ...@@ -29,7 +29,7 @@ Available commands:
"build-electron": transpile electron layer "build-electron": transpile electron layer
"build": build both layers "build": build both layers
"dev": start dev version "dev": start dev version
"dist": create production elctron build "dist": create production electron build
"type-check": check TypeScript in project "type-check": check TypeScript in project
``` ```
......
...@@ -46,4 +46,4 @@ following behavior while you are doing development. ...@@ -46,4 +46,4 @@ following behavior while you are doing development.
- When you run `next build` then `next start`, assuming you set externally the environmental variable STAGING to anything but 1, you will get the results assuming `isProd` is true. - When you run `next build` then `next start`, assuming you set externally the environmental variable STAGING to anything but 1, you will get the results assuming `isProd` is true.
- When your run `next build` or `npm run build` in production, if the environmental variable `STAGING` is set to `1`, `isStaging` will be set and you will get those values returned. - When your run `next build` or `npm run build` in production, if the environmental variable `STAGING` is set to `1`, `isStaging` will be set and you will get those values returned.
You can read more about this feature in thie blog post <a href="https://vercel.com/blog/next5-1" target="_blank">Next.js 5.1: Faster Page Resolution, Environment Config and More</a> (under Environment Config). You can read more about this feature in this blog post <a href="https://vercel.com/blog/next5-1" target="_blank">Next.js 5.1: Faster Page Resolution, Environment Config and More</a> (under Environment Config).
...@@ -54,7 +54,7 @@ Then you can create components and pages in `.tsx` or `.ts` ...@@ -54,7 +54,7 @@ Then you can create components and pages in `.tsx` or `.ts`
## Good to know ## Good to know
- [`firebase.json`](firebase.json:#L7) outlines the catchall rewrite rule for our Cloud Function. - [`firebase.json`](firebase.json:#L7) outlines the catchall rewrite rule for our Cloud Function.
- The empty `public/.gitignore` file is to ensure `public/` dir exists as it is required for Firebase Hosting. It is [configured](firebase.json:#L4) (by [default](https://firebase.google.com/docs/hosting/full-config#ignore)) that dotfiles (`public/.*`) are ignored from bein publicly served. - The empty `public/.gitignore` file is to ensure `public/` dir exists as it is required for Firebase Hosting. It is [configured](firebase.json:#L4) (by [default](https://firebase.google.com/docs/hosting/full-config#ignore)) that dotfiles (`public/.*`) are ignored from being publicly served.
- The Cloud Function is named `nextjsFunc` (changeable in [firebaseFunctions.js](firebaseFunctions.js#L16) and [firebase.json](firebase.json#L8)). - The Cloud Function is named `nextjsFunc` (changeable in [firebaseFunctions.js](firebaseFunctions.js#L16) and [firebase.json](firebase.json#L8)).
- `public/*` files are statically served through [Firebase hosting](https://firebase.google.com/docs/hosting/full-config#public), not through [NextJs server](https://nextjs.org/docs/basic-features/static-file-serving). - `public/*` files are statically served through [Firebase hosting](https://firebase.google.com/docs/hosting/full-config#public), not through [NextJs server](https://nextjs.org/docs/basic-features/static-file-serving).
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment