Skip to content

Commit

Permalink
Use .build folder for build artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomdango committed Jul 4, 2023
1 parent 22b2b93 commit ada302c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ locals {
server_options = {
package = {
source_dir = coalesce(try(var.server_options.package.source_dir, null), "${local.opennext_abs_path}/server-function/")
output_dir = coalesce(try(var.server_options.package.output_dir, null), "/tmp/")
output_dir = coalesce(try(var.server_options.package.output_dir, null), "${local.opennext_abs_path}/.build/")
}

function = {
Expand Down Expand Up @@ -126,7 +126,7 @@ locals {
image_optimization_options = {
package = {
source_dir = coalesce(try(var.image_optimization_options.package.source_dir, null), "${local.opennext_abs_path}/image-optimization-function/")
output_dir = coalesce(try(var.image_optimization_options.package.output_dir, null), "/tmp/")
output_dir = coalesce(try(var.image_optimization_options.package.output_dir, null), "${local.opennext_abs_path}/.build/")
}

function = {
Expand Down Expand Up @@ -201,7 +201,7 @@ locals {
revalidation_options = {
package = {
source_dir = coalesce(try(var.revalidation_options.package.source_dir, null), "${local.opennext_abs_path}/revalidation-function/")
output_dir = coalesce(try(var.revalidation_options.package.output_dir, null), "/tmp/")
output_dir = coalesce(try(var.revalidation_options.package.output_dir, null), "${local.opennext_abs_path}/.build/")
}

function = {
Expand Down Expand Up @@ -284,7 +284,7 @@ locals {
warmer_options = {
package = {
source_dir = coalesce(try(var.warmer_options.package.source_dir, null), "${local.opennext_abs_path}/warmer-function/")
output_dir = coalesce(try(var.warmer_options.package.output_dir, null), "/tmp/")
output_dir = coalesce(try(var.warmer_options.package.output_dir, null), "${local.opennext_abs_path}/.build/")
}

function = {
Expand Down
1 change: 0 additions & 1 deletion modules/opennext-lambda/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ variable "source_dir" {
variable "output_dir" {
type = string
description = "The directory to use to store the lambda deployment packages"
default = "/tmp/"
}


Expand Down

0 comments on commit ada302c

Please sign in to comment.