From bd653435e479c39becda0120882a5dcad8ba26cf Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sat, 9 Jul 2022 13:57:05 +0200 Subject: Debug netlify env II --- exampleSite/content/env.md | 5 +++++ netlify.toml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 exampleSite/content/env.md diff --git a/exampleSite/content/env.md b/exampleSite/content/env.md new file mode 100644 index 0000000..be905dc --- /dev/null +++ b/exampleSite/content/env.md @@ -0,0 +1,5 @@ +--- +env +--- + +~~~ bash diff --git a/netlify.toml b/netlify.toml index 09218ae..716b6dc 100644 --- a/netlify.toml +++ b/netlify.toml @@ -18,7 +18,7 @@ # here but we recommend using the Netlify UI for sensitive # values to keep them out of your source repository. [context.production] - command = 'echo "---\nenv\n---\n~~~ bash\n$(env)\n~~~" >| exampleSite/content/env.md; hugo --source=exampleSite --destination ../public' + command = 'echo "$(env)\n~~~" > exampleSite/content/env.md; hugo --source=exampleSite --destination ../public' [context.production.environment] HUGO_ENV = 'production' -- cgit v1.2.3