blob: 4b212f1777c6a4e2cec8f858233c4a87155215b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
resource "cloudflare_pages_project" "getchoo_website" {
account_id = var.cloudflare_account_id
name = "getchoo-website"
production_branch = "main"
build_config {
build_caching = true
build_command = "./build-site.sh"
destination_dir = "/dist"
}
source {
type = "github"
config {
owner = "getchoo"
repo_name = "website"
production_branch = "main"
}
}
}
resource "cloudflare_pages_domain" "getchoo_website" {
account_id = var.cloudflare_account_id
domain = "getchoo.com"
project_name = "getchoo-website"
}
resource "cloudflare_pages_project" "teawie_api" {
account_id = var.cloudflare_account_id
name = "teawie-api"
production_branch = "main"
build_config {
build_caching = true
build_command = "pnpm run lint && pnpm run build"
destination_dir = "/dist"
}
source {
type = "github"
config {
owner = "getchoo"
repo_name = "teawieAPI"
production_branch = "main"
}
}
}
resource "cloudflare_pages_domain" "teawie_api" {
account_id = var.cloudflare_account_id
domain = "api.getchoo.com"
project_name = "teawie-api"
}
|