Skip to content

Commit

Permalink
[Doc] Remove remove language from package.json step in `Walkthrough…
Browse files Browse the repository at this point in the history
…: Using next export` (#658)
  • Loading branch information
illiakovalenko authored Apr 21, 2021
1 parent c809f49 commit e5bf940
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions docs/data/routes/docs/nextjs/deploying-to-production/export/en.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,9 @@ To export your JSS Next.js application as static HTML files, you must:

Before exporting your application, you must:

1. Remove internationalization configuration:
* In `next.config.js`, delete the `i18n` configuration.
* In `package.json`, delete any language configuration under `config.language`.
1. In `next.config.js`, remove `rewrites` and `i18n`.

2. In `next.config.js`, remove `rewrites`.

3. In `JssNextWeb.config`:
2. In `JssNextWeb.config`:

* Include the Sitecore server URL as part of the media requests:

Expand All @@ -59,11 +55,11 @@ Before exporting your application, you must:

* Run `jss deploy config`.

4. Remove usage of `<VisitorIdentification />` component in `src/components/Layout.tsx`.
3. Remove usage of `<VisitorIdentification />` component in `src/components/Layout.tsx`.

5. In `.env`, define the `PUBLIC_URL` variable.
4. In `.env`, define the `PUBLIC_URL` variable.

6. In `package.json`, add the following scripts:
5. In `package.json`, add the following scripts:

* `"next:export": "next export"`.

Expand All @@ -73,7 +69,7 @@ Before exporting your application, you must:

Replace the `PORT` value with the port of your disconnected server.

7. For disconnected mode only, run `jss start:disconnected-proxy`. During the build stage, Next.js will fetch the required data (layout, dictionary, sitemap) from your disconnected server.
6. For disconnected mode only, run `jss start:disconnected-proxy`. During the build stage, Next.js will fetch the required data (layout, dictionary, sitemap) from your disconnected server.

## Export the application

Expand Down

0 comments on commit e5bf940

Please sign in to comment.