From 80cf9559d2a9c63e448fd6acdccf401157d337a9 Mon Sep 17 00:00:00 2001 From: magnus Date: Sun, 9 Jun 2024 21:49:24 +0200 Subject: [PATCH] docs: add --node-externals build command to the config page --- docs/pages/config.mdx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/pages/config.mdx b/docs/pages/config.mdx index 0c331d793..b300b6a13 100644 --- a/docs/pages/config.mdx +++ b/docs/pages/config.mdx @@ -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 @@ -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). \ No newline at end of file +If you want to look at a full example, you can check [the full example](/config/full_example).