Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Add ability for Netlify to hold API key as environment #14

Merged
merged 14 commits into from
Jul 15, 2022

Conversation

AdamXweb
Copy link
Owner

No description provided.

@netlify
Copy link

netlify bot commented Jul 13, 2022

Deploy Preview for hutasker ready!

Name Link
🔨 Latest commit dd366a9
🔍 Latest deploy log https://app.netlify.com/sites/hutasker/deploys/62d1011a4800a400098b4271
😎 Deploy Preview https://deploy-preview-14--hutasker.netlify.app/tasks
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@viezly
Copy link

viezly bot commented Jul 13, 2022

This pull request is split into 5 parts for easier review.
👀 Review pull request on Viezly

Changed files are located in these folders:

  • /
  • assets/scss/common
  • assets/scss/layouts
  • config/_default
  • content
  • layouts

</div>
{{end}}
<script>
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Am proud of this script, and will leave it here for now as am using Hugo to inject data into an array

{{$user := $airtableuser.records}}
{{with .Creator}}
{{$creator:=index . 0}}
{{range where $user "id" $creator}}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There may be a cleaner way to write this using scratch sets at the top, however it works in this context and am happy for now

@AdamXweb
Copy link
Owner Author

Fixed netlify build script. Note that building with netlify env variables need to be outside quotation marks ('').
See self-closed support thread for more context

@AdamXweb AdamXweb merged commit c7ba6d8 into main Jul 15, 2022
@AdamXweb AdamXweb deleted the netlify-testing branch July 18, 2022 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant