Last update: June 2020
AWS is notorious for it's incredibly complicated security model. This guide will walk you through setting up a fully-featured build & upload script for your Lambda functions.
- An AWS account
These are the 35 root categories on Amazon.com.
Retrieved via Keepa API on April 12, 2021.
API call:
https://api.keepa.com/category?key=<REDACTED>&domain=1&category=0&parents=1
/* | |
By default, service workers cannot access our Vue environment variables. | |
To allow this, this script collects the variables we want at build time | |
and places them in a JS file that the service worker can access. | |
To prevent the leak of sensitive credentials (the SW file is public), | |
only whitelisted environment variables are built into this file. | |
Deploy this file alongside your service worker, and import th efile in your service worker (`importScripts('swenv.js');` in Workbox) |
Based on a code sample provided to me by Avi Marcus.
// Valid as of 2018-10-19
// https://en.wikipedia.org/wiki/Telephone_numbers_in_Israel#Kosher_numbers
const KOSHER_PHONE_MOBILE_REGEX = /^0(5041|5271|5276|5331|5341|5484|5485|5567|5571|5598|5832)\d{5}$/;
const KOSHER_PHONE_FIXED_REGEX = /^0([23489]80\d{5}|7229\d{5}|73724\d{4})$/;
import test from 'ava' | |
import apps from './apps' | |
import promisify from 'promisify-node' | |
const fs = promisify('fs') | |
const constants = require('./constants'); | |
test.before(async t => { | |
await fs.copyFile(constants.STATICSERVERSCONFIGPATH, constants.STATICSERVERSCONFIGPATH+'.backup') | |
}) |
<template> | |
<div class="page"> | |
<Header | |
v-if="title" | |
:title="title" | |
:description="$page.frontmatter.description" | |
:header-image="$page.frontmatter.headerImage" | |
:header-position="$page.frontmatter.headerPosition" | |
/> | |
<div class="content"> |