Clean up unused code and sync Terraform state
- Remove unused Express server (server.js) - Remove unused API route (src/pages/api/filaments.ts) - Remove Express dependency and related scripts from package.json - Import existing AWS domain association into Terraform - Add domain configuration to terraform.tfvars - Update domain association to include www and dev subdomains - Set wait_for_verification to false to avoid timeouts 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -100,8 +100,9 @@ resource "aws_amplify_branch" "dev" {
|
||||
resource "aws_amplify_domain_association" "filamenteka" {
|
||||
count = var.domain_name != "" ? 1 : 0
|
||||
|
||||
app_id = aws_amplify_app.filamenteka.id
|
||||
domain_name = var.domain_name
|
||||
app_id = aws_amplify_app.filamenteka.id
|
||||
domain_name = var.domain_name
|
||||
wait_for_verification = false
|
||||
|
||||
# Map main branch to root domain
|
||||
sub_domain {
|
||||
@@ -109,6 +110,12 @@ resource "aws_amplify_domain_association" "filamenteka" {
|
||||
prefix = ""
|
||||
}
|
||||
|
||||
# Map main branch to www subdomain
|
||||
sub_domain {
|
||||
branch_name = aws_amplify_branch.main.branch_name
|
||||
prefix = "www"
|
||||
}
|
||||
|
||||
# Map dev branch to dev subdomain
|
||||
sub_domain {
|
||||
branch_name = aws_amplify_branch.dev.branch_name
|
||||
|
||||
Reference in New Issue
Block a user