k8s/ingress.yaml
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
'use client' | |
import { PortableText } from '@portabletext/react' | |
import { useState } from 'react' | |
import contactFormAction from '@/actions/contactForm' | |
import SubmitButton from '@/components/submitButton' | |
const Contact = ({ title, description }) => { | |
const [submitted, setSubmitted] = useState(false) |
'use server' | |
import { sql } from '@vercel/postgres' | |
import { Log } from '@/utils' | |
const handleFormSubmit = async (data: FormData) => { | |
const message = data.get('message') as string | |
const email = data.get('email') as string | |
const phoneNumber = data.get('phone') as string | |
const name = data.get('name') as string |
* { | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
} | |
html, body { | |
width: 100%; | |
height: 100%; | |
} |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Input Example</title> | |
</head> | |
<body> | |
<form> |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
<style> | |
</style> |
/** | |
* Wait For It | |
* | |
* Given Env Vars of: | |
* | |
* - VALIDATE_URL: a fully qualified url starting with https:// that we want to validate | |
* - TIME_ALLOWED_IN_SECONDS: timeout we want to wait until we mark this URL dead. Defaults 30 | |
* - TIME_BETWEEN_TRIES_IN_SECONDS: timeout between requests to the URL. Defaults to 1 | |
*/ | |
const https = require('https') |
const someDatabaseLogic: RequestHandler = async (req, res) => { | |
await setTimeout(1000) | |
res.end('Goodbye!') | |
} | |
export const someAPIHandler: RequestHandler = async (req, res, next) => { | |
try { | |
console.log('we are handling a requst') | |
return someDatabaseLogic(req, res, next) | |
} catch (e) { |
import EE from 'events' | |
export const EVENTS = { | |
NEW_VALUE: 'new value', | |
} | |
/** | |
* A Value is a way to represent a single, atomic _primitve_ | |
* that we want to interact with. It can be observed over time | |
* and can be used to make things such as Records/Maps and |
import glob from 'glob' | |
import Case from 'case' | |
import R from 'ramda' | |
interface ImportConfig { | |
case: 'snake' | 'kebab' | 'camel' | 'pascal' | 'constant' | 'header' | |
ext: 'js' | 'ts' | |
without?: string[] | |
} |