Skip to content

Commit

Permalink
include anon key in supabase config in core
Browse files Browse the repository at this point in the history
  • Loading branch information
ships committed Feb 20, 2024
1 parent 7f81ff5 commit 2be6cc3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
6 changes: 1 addition & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ RUN if [[ ! -z $PACKAGE ]]; \
then \
pnpm --filter $PACKAGE build ; \
pnpm --filter $PACKAGE --prod deploy /tmp/app ; \
cp core/.env.docker /tmp/app/.env ; \
fi

# Necessary, perhaps, due to https://github.com/prisma/prisma/issues/15852
Expand All @@ -52,11 +53,6 @@ RUN if [[ ${PACKAGE} == core ]]; \
cp -a {}/. /tmp/app/{}/" ; \
fi

RUN if [[ ${PACKAGE} == core ]]; \
then \
cp core/.env.docker /tmp/app/.env ; \
fi

################################################################################
# Create a new stage to run the application with minimal runtime dependencies
# where the necessary files are copied from the build stage.
Expand Down
1 change: 1 addition & 0 deletions infrastructure/terraform/aws/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ module "service_core" {
{ name = "NEXT_PUBLIC_PUBPUB_URL", value = var.pubpub_url },
{ name = "MAILGUN_SMTP_USERNAME", value = var.MAILGUN_SMTP_USERNAME },
{ name = "NEXT_PUBLIC_SUPABASE_URL", value = var.NEXT_PUBLIC_SUPABASE_URL },
{ name = "NEXT_PUBLIC_SUPABASE_PUBLIC_KEY", value = var.NEXT_PUBLIC_SUPABASE_PUBLIC_KEY },
]

secrets = [
Expand Down
1 change: 1 addition & 0 deletions infrastructure/terraform/aws/modules/v7-cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ resource "aws_lb_listener" "http" {
}
}

# TODO - add ACM certificates to support TLS

# logging

Expand Down
4 changes: 4 additions & 0 deletions infrastructure/terraform/aws/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ variable "NEXT_PUBLIC_SUPABASE_URL" {
description = "URL to Supabase public address for this install"
type = string
}
variable "NEXT_PUBLIC_SUPABASE_PUBLIC_KEY" {
description = "Supabase anon public key"
type = string
}

# TODO deprecate this in favor of a Terraformed bucket
variable "ASSETS_BUCKET_NAME" {
Expand Down

0 comments on commit 2be6cc3

Please sign in to comment.