Skip to content

Instantly share code, notes, and snippets.

View techwizzdom's full-sized avatar

Domagoj Lalk Vidovic techwizzdom

View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div class="container">
<div class="item">Item 1</div>
<div class="item">Item 2</div>
<div class="item">Item 3</div>
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div class="container">
<div class="item">Item 1</div>
<div class="item">Item 2</div>
<div class="item">Item 3</div>
import { next } from "@vercel/edge"
export default async function middleware(req: Request) {
const userAgent = req.headers.get("user-agent")
console.log("userAgent", userAgent)
console.log("req", req)
if (req.url.includes("/robots.txt")) {
return next()
}
name: CI/CD
concurrency:
group: ${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
on:
push:
branches:
- staging
import Stripe, {
CheckoutSessionCreateParams,
} from "https://esm.sh/[email protected]?target=deno"
import {
IS_PRODUCTION,
STRIPE_LOCAL_SECRET_KEY,
STRIPE_LIVE_SECRET_KEY,
} from "../_shared/constants.ts"
import { StripeAction } from "../_shared/enums.ts"