Skip to content

Commit

Permalink
docs: add --node-externals build command to the config page (#439)
Browse files Browse the repository at this point in the history
  • Loading branch information
sommeeeer committed Jun 9, 2024
1 parent 2436651 commit 8e0cdce
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/pages/config.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
### Build Arguments

There is a single build argument that you can pass to the `open-next build` command:
There is two build arguments that you can pass to the `open-next build` command:

- `--config-path` - This is the path to the configuration file that you want to use. By default, it will look for `open-next.config.ts` in the current working directory. This needs to be relative to the current working directory.
- `--node-externals` - You can configure externals for the esbuild compilation of the `open-next.config.ts` file (i.e `--node-externals @aws-sdk/*,open-next/dist/queue/*`)

### Configuration File

Expand All @@ -13,4 +15,4 @@ If you want to take a look at some simple configuration examples, you can check

For more advanced use cases, you can check [how to implement custom overrides](/config/custom_overrides).

If you want to look at a full example, you can check [the full example](/config/full_example).
If you want to look at a full example, you can check [the full example](/config/full_example).

0 comments on commit 8e0cdce

Please sign in to comment.