mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
feat: undo
This commit is contained in:
parent
f43aecbe5f
commit
3468e1221d
1 changed files with 0 additions and 47 deletions
|
|
@ -1,47 +0,0 @@
|
||||||
resource "cloudflare_pages_project" "wiki" {
|
|
||||||
account_id = var.cloudflare_account_id
|
|
||||||
name = "wiki"
|
|
||||||
production_branch = "v4"
|
|
||||||
|
|
||||||
source {
|
|
||||||
type = "github"
|
|
||||||
config {
|
|
||||||
owner = "gensokyo-zone"
|
|
||||||
repo_name = "wiki"
|
|
||||||
production_branch = "v4"
|
|
||||||
deployments_enabled = true
|
|
||||||
pr_comments_enabled = false
|
|
||||||
production_deployment_enabled = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
build_config {
|
|
||||||
build_command = "npx quartz build"
|
|
||||||
destination_dir = "public"
|
|
||||||
root_dir = "/"
|
|
||||||
}
|
|
||||||
lifecycle {
|
|
||||||
ignore_changes = [
|
|
||||||
deployment_configs,
|
|
||||||
source
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
resource "cloudflare_pages_domain" "wiki" {
|
|
||||||
account_id = var.cloudflare_account_id
|
|
||||||
project_name = "wiki"
|
|
||||||
domain = "wiki.gensokyo.zone"
|
|
||||||
|
|
||||||
depends_on = [
|
|
||||||
cloudflare_pages_project.wiki
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
resource "cloudflare_record" "wiki" {
|
|
||||||
zone_id = cloudflare_zone.gensokyo-zone_zone.id
|
|
||||||
name = "wiki"
|
|
||||||
proxied = false
|
|
||||||
ttl = 3600
|
|
||||||
type = "CNAME"
|
|
||||||
value = cloudflare_pages_project.wiki.subdomain
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue