Support the case where webpack config is already present next.config.js (#631)

* Support the case where webpack config is already present next.config.js

* Update scripts for experimental-compile/experimental-generate
This commit was merged in pull request #631.
This commit is contained in:
2023-11-08 23:44:48 -06:00
committed by GitHub
parent 8384e95049
commit 042b413598
6 changed files with 84 additions and 26 deletions
+1
View File
@@ -65,6 +65,7 @@ def command(ctx, base_container, source_repo, force_rebuild, extra_build_args):
# Now build the target webapp. We use the same build script, but with a different Dockerfile and work dir.
container_build_env["CERC_WEBAPP_BUILD_RUNNING"] = "true"
container_build_env["CERC_CONTAINER_BUILD_WORK_DIR"] = os.path.abspath(source_repo)
container_build_env["CERC_CONTAINER_BUILD_DOCKERFILE"] = os.path.join(container_build_dir,
base_container.replace("/", "-"),