Fix production environment variables
- Remove old Confluence variables - Add NEXT_PUBLIC_API_URL for API access 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -4,6 +4,10 @@ terraform {
|
||||
source = "hashicorp/aws"
|
||||
version = "~> 5.0"
|
||||
}
|
||||
cloudflare = {
|
||||
source = "cloudflare/cloudflare"
|
||||
version = "~> 4.0"
|
||||
}
|
||||
}
|
||||
required_version = ">= 1.0"
|
||||
}
|
||||
@@ -17,8 +21,8 @@ resource "aws_amplify_app" "filamenteka" {
|
||||
repository = var.github_repository
|
||||
platform = "WEB"
|
||||
|
||||
# GitHub access token for private repos
|
||||
access_token = var.github_token
|
||||
# GitHub access token for private repos (optional for public repos)
|
||||
# access_token = var.github_token
|
||||
|
||||
# Build settings for Next.js
|
||||
build_spec = <<-EOT
|
||||
@@ -48,6 +52,7 @@ resource "aws_amplify_app" "filamenteka" {
|
||||
CONFLUENCE_API_URL = var.confluence_api_url
|
||||
CONFLUENCE_TOKEN = var.confluence_token
|
||||
CONFLUENCE_PAGE_ID = var.confluence_page_id
|
||||
NEXT_PUBLIC_API_URL = aws_api_gateway_stage.api.invoke_url
|
||||
}
|
||||
|
||||
# Custom rules for single-page app
|
||||
|
||||
Reference in New Issue
Block a user