File tree Expand file tree Collapse file tree 1 file changed +26
-10
lines changed Expand file tree Collapse file tree 1 file changed +26
-10
lines changed Original file line number Diff line number Diff line change @@ -48,26 +48,42 @@ resource "cloudflare_pages_project" "dispoflare_pages_project" {
48
48
49
49
deployment_configs = {
50
50
production = {
51
- environment_variables = {
52
- CLOUDFLARE_ACCOUNT_ID = sensitive (var. cloudflare_account_id )
53
- CLOUDFLARE_API_TOKEN = sensitive (var. cloudflare_api_token )
54
- SENTRY_DSN = sensitive (var. sentry_dsn )
51
+ env_vars = {
52
+ CLOUDFLARE_ACCOUNT_ID = {
53
+ type = " plain_text"
54
+ value = sensitive (var. cloudflare_account_id )
55
+ }
56
+ CLOUDFLARE_API_TOKEN = {
57
+ type = " plain_text"
58
+ value = sensitive (var. cloudflare_api_token )
59
+ }
60
+ SENTRY_DSN = {
61
+ type = " plain_text"
62
+ value = sensitive (try (var. sentry_dsn , " " ))
63
+ }
55
64
}
56
65
57
66
kv_namespaces = {
58
67
KV_SETTINGS = {
59
68
namespace_id = sensitive (cloudflare_workers_kv_namespace. dispoflare_production_settings . id )
60
69
}
61
70
}
62
-
63
- compatibility_date = " 2023-02-25"
64
71
}
65
72
66
73
preview = {
67
- environment_variables = {
68
- CLOUDFLARE_ACCOUNT_ID = sensitive (var. cloudflare_account_id )
69
- CLOUDFLARE_API_TOKEN = sensitive (var. cloudflare_api_token )
70
- SENTRY_DSN = sensitive (var. sentry_dsn )
74
+ env_vars = {
75
+ CLOUDFLARE_ACCOUNT_ID = {
76
+ type = " plain_text"
77
+ value = sensitive (var. cloudflare_account_id )
78
+ }
79
+ CLOUDFLARE_API_TOKEN = {
80
+ type = " plain_text"
81
+ value = sensitive (var. cloudflare_api_token )
82
+ }
83
+ SENTRY_DSN = {
84
+ type = " plain_text"
85
+ value = sensitive (try (var. sentry_dsn , " " ))
86
+ }
71
87
}
72
88
73
89
kv_namespaces = {
You can’t perform that action at this time.
0 commit comments