TheAifam5
TheAifam5
CDCloudflare Developers
Created by TheAifam5 on 7/26/2024 in #pages-discussions
hey, actually I think it is a typo in
I think a note in documentation would have sense that only supported environments for Cloudflare Pages in wrangler.toml are "production" and "preview" and the ".dev.vars" file.
4 replies
CDCloudflare Developers
Created by TheAifam5 on 7/26/2024 in #pages-discussions
hey, actually I think it is a typo in
I know that this documentation: https://developers.cloudflare.com/workers/configuration/environment-variables/ refers to a Workers, is there a documentation for Pages or they are just "similar"?
4 replies
CDCloudflare Developers
Created by TheAifam5 on 7/26/2024 in #pages-discussions
hey, actually I think it is a typo in
Please take a look again on the message I wrote: https://discord.com/channels/595317990191398933/789155108529111069/1265819427555905606 Especially the part:
The configuration shows 2 environments:
[env.staging.vars] and [env.production.vars]
There is no such environment in Cloudflare Pages like "staging", but it is called "preview".
The configuration shows 2 environments:
[env.staging.vars] and [env.production.vars]
There is no such environment in Cloudflare Pages like "staging", but it is called "preview".
I have put the [env.staging.vars] in my wrangler.toml file and it results in an error The supported named-environments for Pages are "preview" and "production". In the response of a message linked above, I've got an answer from you that:
think the way it works is that everything other than the production domain is a preview domain. staging is an example
think the way it works is that everything other than the production domain is a preview domain. staging is an example
which looks like, based on the error message, is not the case.
4 replies