diff --git a/.alexignore b/.alexignore index a90e7072f8..68d446f20b 100644 --- a/.alexignore +++ b/.alexignore @@ -1,4 +1,3 @@ CODE_OF_CONDUCT.md docs/ -errors/ examples/ diff --git a/.alexrc b/.alexrc new file mode 100644 index 0000000000..5feb2df2c9 --- /dev/null +++ b/.alexrc @@ -0,0 +1,12 @@ +{ + "allow": [ + "dead", + "executed", + "executes", + "failed", + "failure", + "hook", + "host-hostess", + "invalid" + ] +} \ No newline at end of file diff --git a/errors/api-routes-static-export.md b/errors/api-routes-static-export.md index c4db007354..8b2388ef56 100644 --- a/errors/api-routes-static-export.md +++ b/errors/api-routes-static-export.md @@ -4,7 +4,7 @@ An `exportPathMap` path was matched to an API route. Statically exporting a Next.js application via `next export` disables API routes. -This command is meant for static-only hosts, and is not necessary to make your application static. Pages in your application without server-side data dependencies will be automatically statically exported by `next build`, including pages powered by `getStaticProps` +This command is meant for a static-only setup, and is not necessary to make your application static. Pages in your application without server-side data dependencies will be automatically statically exported by `next build`, including pages powered by `getStaticProps` #### Possible Ways to Fix It diff --git a/errors/can-not-output-to-public.md b/errors/can-not-output-to-public.md index d7cbdb5673..1423bd329c 100644 --- a/errors/can-not-output-to-public.md +++ b/errors/can-not-output-to-public.md @@ -4,7 +4,7 @@ Either you set `distDir` to `public` in your `next.config.js` or during `next export` you tried to export to the `public` directory. -This is not allowed due to `public` being a special folder in Next.js used to serve static assets. +This is not allowed because `public` is used by Next.js to serve static assets. #### Possible Ways to Fix It diff --git a/errors/can-not-output-to-static.md b/errors/can-not-output-to-static.md index b949bc06ff..750335e63e 100644 --- a/errors/can-not-output-to-static.md +++ b/errors/can-not-output-to-static.md @@ -4,7 +4,7 @@ Either you set `distDir` to `static` in your `next.config.js` or during `next export` you tried to export to the `static` directory. -This is not allowed due to `static` being a special folder in Next.js used to serve static assets. +This is not allowed because `static` is used by Next.js to serve static assets. #### Possible Ways to Fix It diff --git a/errors/future-webpack5-moved-to-webpack5.md b/errors/future-webpack5-moved-to-webpack5.md index fcc2883727..27aadf72a2 100644 --- a/errors/future-webpack5-moved-to-webpack5.md +++ b/errors/future-webpack5-moved-to-webpack5.md @@ -8,7 +8,7 @@ The `future.webpack5` option has been moved to `webpack5` in `next.config.js`. If you had the value `true` you can remove the option as webpack 5 is now the default for all Next.js apps unless opted out. -If you had he value `false` you can update `next.config.js`: +If you had the value `false` you can update `next.config.js`: Change `future.webpack5` to `webpack5`. diff --git a/errors/next-start-serverless.md b/errors/next-start-serverless.md index 483f024d99..86009d133d 100644 --- a/errors/next-start-serverless.md +++ b/errors/next-start-serverless.md @@ -6,4 +6,4 @@ Next.js can only handle running a server when the `target` is set to `server` (t #### Possible Ways to Fix It -Use a different handler than `next start` when testing a serverless **production** build, otherwise just use `next dev`. +Use a different handler than `next start` when testing a serverless **production** build, otherwise use `next dev`. diff --git a/errors/prefetch-true-deprecated.md b/errors/prefetch-true-deprecated.md index dbc5a2ed34..77733fea94 100644 --- a/errors/prefetch-true-deprecated.md +++ b/errors/prefetch-true-deprecated.md @@ -18,4 +18,4 @@ These requests have low-priority and yield to fetch() or XHR requests. Next.js w The prefetch attribute is no longer needed, when set to true, example: `prefetch={true}`, remove the property. -Prefetching can be disabled with `prefetch={false}`. +Prefetching can be turned off with `prefetch={false}`. diff --git a/errors/static-dir-deprecated.md b/errors/static-dir-deprecated.md index 9a8138e987..76e13986ae 100644 --- a/errors/static-dir-deprecated.md +++ b/errors/static-dir-deprecated.md @@ -8,7 +8,7 @@ The reason we want to support a `public` directory instead is to not require the #### Possible Ways to Fix It -You can move your `static` directory inside of the `public` directory and all URLs will remain the same as they were before. +You can move your `static` directory inside of the `public` directory and all URLs will stay the same as they were before. **Before**