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:
DaX
2025-06-18 23:43:28 +02:00
parent d7d047d9e6
commit 606a5136dc
4 changed files with 18 additions and 35 deletions

View File

@@ -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